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