From 96b758d7d7c8320148048d6cdcf6d802df7fd6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 15 Jul 2019 16:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E5=AF=BC=E8=88=AA=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/competitions/index.html.erb | 7 +++++++ public/react/src/index.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/competitions/index.html.erb b/app/views/competitions/index.html.erb index 0ff957e3..dd2ef7fc 100644 --- a/app/views/competitions/index.html.erb +++ b/app/views/competitions/index.html.erb @@ -1,4 +1,11 @@
+ +
+ 全部 + 进行中 + 往期比赛 +
+ <% if @competitions.count > 0 %>
<% @competitions.each do |competition| %> diff --git a/public/react/src/index.js b/public/react/src/index.js index 739ceebe..36fbf15c 100644 --- a/public/react/src/index.js +++ b/public/react/src/index.js @@ -36,10 +36,10 @@ window.__useKindEditor = false; // TODO 避免重复的请求 https://github.com/axios/axios#cancellation // https://github.com/axios/axios/issues/1497 -// TODO 读取到package.json中的配置? +// TODO 读取到package.json中的配置? var proxy = "http://localhost:3000" // proxy = "http://testbdweb.trustie.net" - proxy = "http://testbdweb.educoder.net" +// proxy = "http://testbdweb.educoder.net" // proxy ="http://192.168.2.63:3000" // proxy='https://www.educoder.net' const requestMap={};