tangning преди 2 седмици
родител
ревизия
d06ba5a59a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/view/newFireCase/newFireDetails/components/headerTop.vue

+ 2 - 2
src/view/newFireCase/newFireDetails/components/headerTop.vue

@@ -50,7 +50,7 @@ import { ArrowLeft } from "@element-plus/icons-vue";
 import { useRoute } from 'vue-router';
 import { RouteName, router } from "@/router";
 import { ElMessage } from "element-plus";
-import { throttle } from "@/util";
+import { throttle, debounce } from "@/util";
 const props = defineProps<{
   caseId: number;
   currentRecord: object;
@@ -129,7 +129,7 @@ const emit = defineEmits<{
   export: [],
 }>()
 
-const autoSave = throttle(() => emit('save'), 400);
+const autoSave = throttle(() => emit('save'), 1000);
 
 // 导出相关状态与方法(复用 photos/index 的逻辑)
 const isSenseLoaded = ref(true);