From c843628b1d0624095e0c1607b92bc9c18819fd33 Mon Sep 17 00:00:00 2001 From: zhangyh Date: Mon, 27 Oct 2025 16:22:55 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E5=BD=93=E5=89=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=98=BE=E7=A4=BA=E6=97=B6like=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=9B=BE=E7=89=87=E9=87=8D=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/HomePage/UpgradePlan.vue | 2 +- src/component/home/index.vue | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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提示