소스 검색

[FIX] 针对review各个阶段的输入检查

Kunduin 7 년 전
부모
커밋
b4fdc07171
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/components/CheckList/index.vue
  2. 2 2
      vue.config.js

+ 2 - 2
src/components/CheckList/index.vue

@@ -44,7 +44,7 @@
       />
       <div
         class="action-section--warning action-section "
-        v-if="item.state === 'PENDING'"
+        v-if="item.state === 'PENDING' && review.state === 'ARGUING'"
       >
         <span
           @click="acceptArgue(item)"
@@ -61,7 +61,7 @@
       </div>
       <div
         class="action-section--primary action-section "
-        v-if="item.state === 'SOLVING'"
+        v-if="item.state === 'SOLVING' && review.state === 'SOLVING'"
       >
         <span
           @click="submitSolution(item)"

+ 2 - 2
vue.config.js

@@ -2,8 +2,8 @@ module.exports = {
   devServer: {
     proxy: {
       "^/api": {
-        // target: "http://localhost:4000/",
-        target: "http://10.1.1.198:8080/",
+        target: "http://localhost:4000/",
+        // target: "http://10.1.1.198:8080/",
         //target: "http://192.168.0.101:8080",
         // target: "http://10.1.2.3:8080/",