tangning 1 일 전
부모
커밋
5d51bf607c
1개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 7
      src/view/case/photos/index.vue

+ 3 - 7
src/view/case/photos/index.vue

@@ -508,16 +508,12 @@ const handleAddType = async (type) => {
 };
 // 插入空白页
 // direction: true-右侧 false-左侧
-const fdinsertBlankPage = (direction) => {
+const insertBlankPage = throttle((direction) => {
   if (editor.value) {
     pages.value = editor.value.insertBlankPage(direction);
   }
-};
-/**
- * 插入空白页
- * @param {boolean} direction - 插入方向,true-右侧,false-左侧
- */
-const insertBlankPage = throttle(fdinsertBlankPage, 50)
+}, 100);
+
 const changeIndexing = async () => {
   indexing.value = !indexing.value;
   await nextTick();