diff --git a/src/component/HomePage/UpgradePlan.vue b/src/component/HomePage/UpgradePlan.vue index 952984a0..75e9ec37 100644 --- a/src/component/HomePage/UpgradePlan.vue +++ b/src/component/HomePage/UpgradePlan.vue @@ -116,7 +116,7 @@ import { Https } from "@/tool/https"; import { useStore } from "vuex"; import { useI18n } from "vue-i18n"; import payMethod from "@/component/Pay/payMethod.vue"; -import { compute } from "three/tsl"; +// import { compute } from "three/tsl"; // import { forEach } from "jszip"; export default defineComponent({ components: { diff --git a/src/component/home/index.vue b/src/component/home/index.vue index e4d90a0d..e4d17a05 100644 --- a/src/component/home/index.vue +++ b/src/component/home/index.vue @@ -86,10 +86,21 @@ export default defineComponent({ return } + // 检查是否需要重新初始化 + const currentPath = route.fullPath + const storedPath = store.state.Workspace.projectPath + const isSameProject = currentPath === storedPath && data.openType === 'history' + if(data.openType == 'history'){ store.commit('setProjectPath',route.fullPath) } + // 如果是同一个项目且openType为history,跳过重新初始化 + if(isSameProject){ + data.dataLoad = false + return + } + nextTick(()=>{ if(query.history || query.id){ //切换新项目需要清除首次design提示