|
|
@@ -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();
|