From 10844bc820be80054d983d166c402de802545108 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Wed, 12 Nov 2025 10:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87404=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/LoginPage/login/personal.vue | 2 -- src/component/home/index.vue | 4 ++-- src/component/toolsPage/index.vue | 2 +- src/router/index.ts | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/component/LoginPage/login/personal.vue b/src/component/LoginPage/login/personal.vue index 33e569ff..09debfc6 100644 --- a/src/component/LoginPage/login/personal.vue +++ b/src/component/LoginPage/login/personal.vue @@ -373,8 +373,6 @@ export default defineComponent({ email: this.forgetPasswordEmail, operationType: "FORGET_PWD", }; - this.frogetPasswordStep = 2; - (this.forgetEmailCode = ["", "", "", "", "", ""]), this.createTimer(); Https.axiosPost(Https.httpUrls.accountSendEmail, data).then((rv: any) => { if (rv) { this.frogetPasswordStep = 2; diff --git a/src/component/home/index.vue b/src/component/home/index.vue index 43fcf4fe..45a0b998 100644 --- a/src/component/home/index.vue +++ b/src/component/home/index.vue @@ -85,7 +85,7 @@ export default defineComponent({ const routeName = newRoute.name as string const shouldCache = newRoute.meta?.cache === true if (shouldCache && routeName && !data.cachedRoutes.includes(routeName)) { - if(routeName == 'toolsPage' && !route.query?.id)return + if(routeName == 'tools' && !route.query?.id)return data.cachedRoutes.push(routeName)// 保证缓存只有一个项目 } else if ((!route.query?.id && shouldCache) || (!shouldCache && routeName && data.cachedRoutes.includes(routeName))) { // } else if (!shouldCache && routeName && data.cachedRoutes.includes(routeName)) { @@ -226,7 +226,7 @@ export default defineComponent({ storeData.positionList = position store.commit('setProbject',storeData) // setChatData() - if(route.name == 'toolsPage'){ + if(route.name == 'tools'){ getCollection('tools',null) }else{ getCollection('design',null) diff --git a/src/component/toolsPage/index.vue b/src/component/toolsPage/index.vue index ef04f5f6..26e80b6d 100644 --- a/src/component/toolsPage/index.vue +++ b/src/component/toolsPage/index.vue @@ -92,7 +92,7 @@ export default defineComponent({ (query:any, oldQuery:any) => { if(oldQuery && query == oldQuery)return const key = Object.keys(query)?.[0] - if(route.name == 'toolsPage' && key){ + if(route.name == 'tools' && key){ data.openType = query[key] nextTick(()=>{ open(query[key]) diff --git a/src/router/index.ts b/src/router/index.ts index a28a7f9d..1fe4d6b1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -67,7 +67,7 @@ const routes: Array = [ children: [ { path: "tools", - name: "toolsPage", + name: "tools", meta: { enter: "all",cache:true }, component: () => import("@/views/HomeView/Tools.vue"), },