liuqiao 4 жил өмнө
parent
commit
00ef03e81f

+ 4 - 8
src/views/index/workbench/index.vue

@@ -126,18 +126,14 @@ export default {
   watch: {
     $route: {
       handler: function (route) {
-        // this.platformIds = this.$route.query.id
-        // this.pretreatment = this.$route.query.pretreatment
-        // this.solver = this.$route.query.solver
-        // this.currentPage = this.solver != 0 ? 'solver' : 'pretreatment'
-        // if (this.platformIds) {
-      
-        //   this.getData()
-        // }
+       if (route.query && route.query.type == 'reLogin') {
+          this.toLogin()
+        }
       },
       immediate: true,
     },
   },
+    inject: ['toLogin'],
   created() {
 
   },