فهرست منبع

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

+ 2 - 2
vue.config.js

@@ -2,8 +2,8 @@ module.exports = {
   devServer: {
   devServer: {
     proxy: {
     proxy: {
       "^/api": {
       "^/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://192.168.0.101:8080",
         // target: "http://10.1.2.3:8080/",
         // target: "http://10.1.2.3:8080/",