Przeglądaj źródła

promise router refresh

ethan 6 lat temu
rodzic
commit
41697fe082
2 zmienionych plików z 9 dodań i 4 usunięć
  1. 7 2
      src/App.vue
  2. 2 2
      src/views/gambleGameBucket/detail/index.vue

+ 7 - 2
src/App.vue

@@ -1,12 +1,17 @@
1 1
 <template>
2 2
   <div id="app">
3
-    <router-view></router-view>
3
+    <router-view :key="key"></router-view>
4 4
   </div>
5 5
 </template>
6 6
 
7 7
 <script>
8 8
 export default {
9
-  name: 'app'
9
+  name: 'app',
10
+  computed: {
11
+    key() {
12
+        return this.$route.name !== undefined? this.$route.name + +new Date(): this.$route + +new Date()
13
+    }
14
+ }
10 15
 }
11 16
 </script>
12 17
 

+ 2 - 2
src/views/gambleGameBucket/detail/index.vue

@@ -66,8 +66,8 @@
66 66
               <div>{{scope.row.currentChips}}</div>
67 67
             </template>
68 68
           </el-table-column>  
69
-          <el-table-column label="閒家輸贏" prop="memberWagger"></el-table-column>          
70
-          <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
69
+          <!-- <el-table-column label="閒家輸贏" prop="memberWagger"></el-table-column>          
70
+          <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column> -->
71 71
         </el-table-column>             
72 72
       </el-table-column>                   
73 73
     </el-table>