Browse Source

弯路撤销到删除后 在回滚回来显示报错

jinx 2 years ago
parent
commit
0ce9133719
4 changed files with 2 additions and 4 deletions
  1. 2 1
      src/graphic/History/HistoryUtil.js
  2. 0 1
      src/hook/custom/setup.ts
  3. 0 1
      src/hook/useEdit.ts
  4. 0 1
      src/hook/useGraphic.ts

+ 2 - 1
src/graphic/History/HistoryUtil.js

@@ -427,7 +427,8 @@ export default class HistoryUtil {
     curveRoadPointInfo.parent = JSON.parse(
       JSON.stringify(curveRoadPoint2.parent)
     );
-    curveRoadPointInfo.index = curveRoadPoint1.index;
+
+    curveRoadPointInfo.index = curveRoadPoint2.index;
     this.setCurveRoadPointInfo(curveRoadPointInfo);
   }
 

+ 0 - 1
src/hook/custom/setup.ts

@@ -72,7 +72,6 @@ const magnifierSetting = (sdk: SDK) => {
     (magnifierMode, oldVal) => {
       if (magnifierMode) {
         fullViewStack.push(ref("scene"));
-        console.error("111")
         sdk.scene.openMagnifier();
       } else if (oldVal) {
         sdk.scene.closeMagnifier();

+ 0 - 1
src/hook/useEdit.ts

@@ -129,7 +129,6 @@ export function useDesaveAssist<T extends object>(
     try {
       await setting.save(args)
     } catch (e) {
-      console.error('111', e)
       // recovery && recovery()
       throw e
     }

+ 0 - 1
src/hook/useGraphic.ts

@@ -21,7 +21,6 @@ const newsletter = ref<{
 
 const changeIndex = ref(0)
 export const changeStore = () => {
-  console.error("111")
   changeIndex.value++
 }
 export const useChange = (fn: () => void) => {