|
|
@@ -656,12 +656,11 @@ const handleDragOver = (e) => {
|
|
|
// 拖拽放下
|
|
|
const handleDrop = async (e) => {
|
|
|
if (!draggedPhoto.value || !editor.value) return;
|
|
|
- const check = await editor.value.checkIndexing();
|
|
|
+ // const check = await editor.value.checkIndexing();
|
|
|
// 获取拖拽到的页面和位置
|
|
|
const position = editor.value.getPhotoPositionInPage(e);
|
|
|
const { pageIndex, itemIndex } = position;
|
|
|
|
|
|
- console.log("saveHistory", editor.value.history);
|
|
|
if (pageIndex === -1 || itemIndex === -1) return;
|
|
|
pages.value = editor.value.pages;
|
|
|
// 更新页面数据
|