Browse Source

修改发布赛事

zs 1 year ago
parent
commit
16d8893750
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/views/release/index.vue

+ 6 - 4
src/views/release/index.vue

@@ -3,10 +3,10 @@
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
         <div class="w_1200 one">
-          <demand v-show="routeType == 'demand'"></demand>
-          <project v-show="routeType == 'project'"></project>
-          <match v-show="routeType == 'match'"></match>
-          <achievement v-show="routeType == 'achievement'"></achievement>
+          <demand v-if="routeType == 'demand'"></demand>
+          <project v-if="routeType == 'project'"></project>
+          <match v-if="routeType == 'match'"></match>
+          <achievement v-if="routeType == 'achievement'"></achievement>
         </div>
       </el-col>
     </el-row>
@@ -215,6 +215,8 @@ watch(
     if (newVal) {
       type.value = '0'
       list.value = []
+      if (routeType.value == 'match') form.value = { file: [], rules: {} }
+      else form.value = {}
       searchField()
     }
   },