Update app.ts

This commit is contained in:
TimSpan 2024-09-13 11:07:13 +08:00
parent 0c0bbe89df
commit cc73564ed5
1 changed files with 4 additions and 5 deletions

View File

@ -3,11 +3,10 @@ import {createPinia} from 'pinia'
import {useCounterStore} from '@/store'
import './app.scss'
import './assets/scss/colorui.scss'
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import Taro from "@tarojs/taro";
const pinia = createPinia()
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// pinia.use(piniaPluginPersistedstate)
const App = createApp({
onShow(options) {
@ -17,11 +16,11 @@ const App = createApp({
console.log(token)
if (token) {
Taro.switchTab({
// url:'/pages/mine/mine'
url: '/pages/projectManager/index/index'
url: '/pages/mine/mine'
// url: '/pages/projectManager/index/index'
})
// store.setSelected(2)
store.setSelected(2)
} else {
console.log(2222)
}