Browse Source

编辑数据后刷新页面

duy 2 years ago
parent
commit
4c811a453d
2 changed files with 8 additions and 4 deletions
  1. 4 2
      src/views/tentative/detect/outside.vue
  2. 4 2
      src/views/tentative/detect/third.vue

+ 4 - 2
src/views/tentative/detect/outside.vue

@@ -533,7 +533,8 @@ const submitFormApi = async () => {
         setTimeout(() => {
             addEditFormLoading.value = false
         }, 1000);
-        await getTableData()
+        // await getTableData()
+        window?.location?.reload()  //刷新页面
     }
     addEditFormLoading.value = false
 }
@@ -610,7 +611,8 @@ const tableRemoveData = async () => {
         //处理数据
         if (!error && code === 200) {
             window?.$message?.success('操作成功')
-            searchClick()
+            // searchClick()
+            window?.location?.reload()  //刷新页面
         }
     }
 }

+ 4 - 2
src/views/tentative/detect/third.vue

@@ -533,7 +533,8 @@ const submitFormApi = async () => {
         setTimeout(() => {
             addEditFormLoading.value = false
         }, 1000);
-        await getTableData()
+        // await getTableData()
+        window?.location?.reload()  //刷新页面
     }
     addEditFormLoading.value = false
 }
@@ -610,7 +611,8 @@ const tableRemoveData = async () => {
         //处理数据
         if (!error && code === 200) {
             window?.$message?.success('操作成功')
-            searchClick()
+            // searchClick()
+            window?.location?.reload()  //刷新页面
         }
     }
 }