Explorar el Código

fix: 修改bug

bill hace 1 año
padre
commit
63ecab183f
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/views/registration/index.vue

+ 3 - 2
src/views/registration/index.vue

@@ -68,7 +68,7 @@
 <script setup lang="ts">
 import { ref, computed, watch, watchEffect } from 'vue'
 import { ControlPanl } from '@/components/control-panl/'
-import { modelRange, getSceneModel } from '@/sdk'
+import { modelRange, getSceneModel, sdk } from '@/sdk'
 import { diffArrayChange } from '@/utils'
 import { useViewStack } from '@/hook'
 import { autoSaveFuseModels, getFuseModel, leave } from '@/store'
@@ -136,15 +136,16 @@ watchEffect((onCleanup) => {
   }
 })
 
-
 useViewStack(() => {
   showMeasuresStack.push(ref(false));
+  sdk.showGrid()
 
   return () => {
     showMeasuresStack.pop()
     if (selectOptions.value.length) {
       selectOptions.value = []
     }
+    sdk.hideGrid()
   }
 })
 useViewStack(autoSaveFuseModels)