tangning 1 ora fa
parent
commit
adc2c68121
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      src/view/case/photos/index.vue

+ 8 - 1
src/view/case/photos/index.vue

@@ -233,7 +233,9 @@ const handleSee = async () =>{
   const pages = editor.value?.pages
   const indexingLineList = editor.value?.indexingLineList
   const content = JSON.stringify({pages, indexingLineList})
-
+  if(indexing.value){
+    changeIndexing()
+  }
   let {data} = await casePhotoUpdate({
     id,
     caseId: caseId.value,
@@ -417,6 +419,11 @@ const changeIndexing = async () => {
   if (editor.value) {
     editor.value.indexing = indexing.value;
     editor.value.selectedPageIndex = -1;
+    editor.value.tempArrow = {
+      start: null,    // { x, y }
+      end: null,      // { x, y }
+      drawing: false  // 是否正在绘制
+    };
     editor.value.selectedPageItem = {
       index: -1,
       pageIndex: -1,