Przeglądaj źródła

巡检路线编辑页面关闭处理

lipenghui 1 miesiąc temu
rodzic
commit
65d7ac0e58
1 zmienionych plików z 9 dodań i 6 usunięć
  1. 9 6
      src/views/pms/inspect/route/IotInspectRoute.vue

+ 9 - 6
src/views/pms/inspect/route/IotInspectRoute.vue

@@ -217,13 +217,16 @@ const openDevice = () => {
 }
 
 const close = () => {
+  // delView(unref(currentRoute))
+  // push({
+  //   name: 'IotInspectRoute',
+  //   query: {
+  //     date: new Date().getTime()
+  //   }
+  // })
+
   delView(unref(currentRoute))
-  push({
-    name: 'IotInspectRoute',
-    query: {
-      date: new Date().getTime()
-    }
-  })
+  push({ name: 'IotInspectRoute', params:{}})
 }
 const itemsWithIndex = computed(() => {
   return items.value.map((item, index) => ({