tangning 3 hari lalu
induk
melakukan
dbec02ab40
1 mengubah file dengan 7 tambahan dan 2 penghapusan
  1. 7 2
      src/view/case/photos/index.vue

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

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