1
0
tangning 11 часов назад
Родитель
Сommit
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();