瀏覽代碼

编辑数据后刷新页面

duy 2 年之前
父節點
當前提交
4c811a453d
共有 2 個文件被更改,包括 8 次插入4 次删除
  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()  //刷新页面
         }
     }
 }