From e9f6f61b2160db56c75bb73b0c734c8b196d1866 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Sat, 14 Sep 2024 15:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collect_information/src/app.ts | 38 +++++++++--------- .../src/subPages/pages/form/form.vue | 1 - .../subPages/pages/myProject/myProject.vue | 39 ++++++++++++------- .../src/views/serviceManagement/index.vue | 17 ++++---- 4 files changed, 53 insertions(+), 42 deletions(-) diff --git a/collect_information/src/app.ts b/collect_information/src/app.ts index 150d716..95a2ac5 100644 --- a/collect_information/src/app.ts +++ b/collect_information/src/app.ts @@ -10,25 +10,25 @@ const pinia = createPinia() // pinia.use(piniaPluginPersistedstate) const App = createApp({ onShow(options) { - try { - const store = useCounterStore() - const token = Taro.getStorageSync('token') - console.log(token) - if (token) { - Taro.switchTab({ - url: '/pages/mine/mine' - // url: '/pages/projectManager/index/index' - - }) - store.setSelected(2) - } else { - console.log(2222) - } - console.log('App onShow.') - } catch (err) { - console.log(err) - - } + // try { + // const store = useCounterStore() + // const token = Taro.getStorageSync('token') + // console.log(token) + // if (token) { + // Taro.switchTab({ + // url: '/pages/mine/mine' + // // url: '/pages/projectManager/index/index' + // + // }) + // store.setSelected(2) + // } else { + // console.log(2222) + // } + // console.log('App onShow.') + // } catch (err) { + // console.log(err) + // + // } }, // 入口组件不需要实现 render 方法,即使实现了也会被 taro 所覆盖 diff --git a/collect_information/src/subPages/pages/form/form.vue b/collect_information/src/subPages/pages/form/form.vue index 3fd8a3a..04281ae 100644 --- a/collect_information/src/subPages/pages/form/form.vue +++ b/collect_information/src/subPages/pages/form/form.vue @@ -1,6 +1,5 @@