浏览代码

返回刷新页面

duy 2 年之前
父节点
当前提交
4f015dbdcc
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/views/tentative/detect/test-form.vue

+ 6 - 3
src/views/tentative/detect/test-form.vue

@@ -846,9 +846,9 @@ const tableFormSaveClick = async () => {
                           listItemBaseData.value.id=data
                     bussPdfsClick(nodeIdvalue.value)
                     toBackClick()
-                     setTimeout(() => {
-                            window?.location?.reload()  //刷新页面
-                     }, 1000);
+                    //  setTimeout(() => {
+                    //         window?.location?.reload()  //刷新页面
+                    //  }, 1000);
                        
                     }
                 
@@ -1107,6 +1107,9 @@ const toBackClick = () => {
         path: '/tentative/detect/test',
         query: {}
     })
+      setTimeout(() => {
+                            window?.location?.reload()  //刷新页面
+      }, 1000);
 }
 const updeviceUseIds = (val) => {
     listItemBaseData.value.deviceUseIds=val