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