Parcourir la source

Add hard refresh on scene reload

rigwild il y a 4 ans
Parent
commit
ab493acea2
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src/App.vue

+ 6 - 1
src/App.vue

@@ -24,7 +24,7 @@
             </v-list-tile-content>
           </v-list-tile>
 
-          <v-list-tile @click="loadScenes">
+          <v-list-tile @click="loadScenesHard">
             <v-list-tile-action>
               <v-icon>refresh</v-icon>
             </v-list-tile-action>
@@ -108,6 +108,11 @@ export default {
       return this.load(this.loadScenesList, 'Loading scenes list...')
     },
 
+    async loadScenesHard() {
+      await this.loadScenes()
+      this.$router.go()
+    },
+
     async load(fn, loadingMessage) {
       try {
         this.loadingMessage = loadingMessage