|
@@ -71,7 +71,7 @@ import { togetherCallback } from '@/utils'
|
|
import { getSceneModel, modelRange } from '@/sdk'
|
|
import { getSceneModel, modelRange } from '@/sdk'
|
|
import { useViewStack, useActive } from '@/hook'
|
|
import { useViewStack, useActive } from '@/hook'
|
|
import { showLeftPanoStack, custom, modelsChangeStoreStack, showRightPanoStack } from '@/env'
|
|
import { showLeftPanoStack, custom, modelsChangeStoreStack, showRightPanoStack } from '@/env'
|
|
-import { ref, nextTick, watchEffect, computed } from 'vue'
|
|
|
|
|
|
+import { ref, nextTick, watchEffect, computed, watch } from 'vue'
|
|
import { Dialog } from 'bill/expose-common'
|
|
import { Dialog } from 'bill/expose-common'
|
|
|
|
|
|
import Actions from '@/components/actions/index.vue'
|
|
import Actions from '@/components/actions/index.vue'
|
|
@@ -92,10 +92,8 @@ const actionItems: ActionsProps['items'] = [
|
|
icon: 'flip',
|
|
icon: 'flip',
|
|
text: '旋转',
|
|
text: '旋转',
|
|
action: () => {
|
|
action: () => {
|
|
- console.log('enter')
|
|
|
|
getSceneModel(custom.currentModel)?.enterRotateMode()
|
|
getSceneModel(custom.currentModel)?.enterRotateMode()
|
|
return () => {
|
|
return () => {
|
|
- console.log('leave la ')
|
|
|
|
getSceneModel(custom.currentModel)?.leaveTransform()
|
|
getSceneModel(custom.currentModel)?.leaveTransform()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -110,6 +108,14 @@ watchEffect(() => {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+watch(
|
|
|
|
+ () => custom.currentModel,
|
|
|
|
+ () => {
|
|
|
|
+ console.log('???')
|
|
|
|
+ currentItem.value = null;
|
|
|
|
+ }
|
|
|
|
+)
|
|
|
|
+
|
|
const reset = async () => {
|
|
const reset = async () => {
|
|
if (custom.currentModel && await Dialog.confirm('确定恢复默认?此操作无法撤销')) {
|
|
if (custom.currentModel && await Dialog.confirm('确定恢复默认?此操作无法撤销')) {
|
|
Object.assign(custom.currentModel, defaultFuseModelAttrs)
|
|
Object.assign(custom.currentModel, defaultFuseModelAttrs)
|