fxs 8 ماه پیش
والد
کامیت
6a6118fb6f
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 3 1
      src/components/Table.vue
  2. 1 1
      src/hooks/useRequest.ts

+ 3 - 1
src/components/Table.vue

@@ -2,7 +2,7 @@
  * @Author: fxs bjnsfxs@163.com
  * @Date: 2024-08-20 18:16:18
  * @LastEditors: fxs bjnsfxs@163.com
- * @LastEditTime: 2024-09-18 14:45:33
+ * @LastEditTime: 2024-09-18 15:27:08
  * @FilePath: \Game-Backstage-Management-System\src\components\Table.vue
  * @Description: 
  * 
@@ -432,6 +432,8 @@ const initFormData = () => {
     queryFormData[item.name] = item.default
     backupQueryFormData[item.name] = item.default
   })
+  // backupQueryFormData = JSON.parse(JSON.stringify(queryFormData))
+  Object.assign(backupQueryFormData, JSON.parse(JSON.stringify(queryFormData)))
 }
 
 /**

+ 1 - 1
src/hooks/useRequest.ts

@@ -2,7 +2,7 @@
  * @Author: fxs bjnsfxs@163.com
  * @Date: 2024-08-20 17:24:06
  * @LastEditors: fxs bjnsfxs@163.com
- * @LastEditTime: 2024-09-18 12:04:38
+ * @LastEditTime: 2024-09-18 15:28:50
  * @FilePath: \Game-Backstage-Management-System\src\hooks\useRequest.ts
  * @Description:
  *