李志伟 3 年前
父节点
当前提交
7fc8ecde92
共有 3 个文件被更改,包括 3 次插入2 次删除
  1. 1
    1
      src/components/Question/index.vue
  2. 1
    0
      src/views/gameManage/edit.vue
  3. 1
    1
      src/views/gameManage/index.vue

+ 1
- 1
src/components/Question/index.vue 查看文件

48
       </el-table-column>
48
       </el-table-column>
49
     </el-table>
49
     </el-table>
50
     <el-pagination
50
     <el-pagination
51
-      v-if="questionTotal!==0"
51
+      v-show="questionTotal!==0"
52
       style="float:right; margin:20px 0"
52
       style="float:right; margin:20px 0"
53
       :total="questionTotal"
53
       :total="questionTotal"
54
       :current-page="currentPage"
54
       :current-page="currentPage"

+ 1
- 0
src/views/gameManage/edit.vue 查看文件

115
   },
115
   },
116
   watch: {
116
   watch: {
117
     '$route.query.id'(val) {
117
     '$route.query.id'(val) {
118
+      // immediate: true
118
       this.gameId = val
119
       this.gameId = val
119
       getGameDetail(val).then((res) => {
120
       getGameDetail(val).then((res) => {
120
         this.gameForm = res.data
121
         this.gameForm = res.data

+ 1
- 1
src/views/gameManage/index.vue 查看文件

49
       </el-table-column>
49
       </el-table-column>
50
     </el-table>
50
     </el-table>
51
     <el-pagination
51
     <el-pagination
52
-      v-if="gameTotal!==0"
52
+      v-show="gameTotal!==0"
53
       style="float:right; margin:20px 0"
53
       style="float:right; margin:20px 0"
54
       :total="gameTotal"
54
       :total="gameTotal"
55
       :current-page="currentPage"
55
       :current-page="currentPage"