Browse Source

promise router refresh

ethan 6 years ago
parent
commit
41697fe082
2 changed files with 9 additions and 4 deletions
  1. 7 2
      src/App.vue
  2. 2 2
      src/views/gambleGameBucket/detail/index.vue

+ 7 - 2
src/App.vue

1
 <template>
1
 <template>
2
   <div id="app">
2
   <div id="app">
3
-    <router-view></router-view>
3
+    <router-view :key="key"></router-view>
4
   </div>
4
   </div>
5
 </template>
5
 </template>
6
 
6
 
7
 <script>
7
 <script>
8
 export default {
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
 </script>
16
 </script>
12
 
17
 

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

66
               <div>{{scope.row.currentChips}}</div>
66
               <div>{{scope.row.currentChips}}</div>
67
             </template>
67
             </template>
68
           </el-table-column>  
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
         </el-table-column>             
71
         </el-table-column>             
72
       </el-table-column>                   
72
       </el-table-column>                   
73
     </el-table>
73
     </el-table>