Update app.ts
This commit is contained in:
parent
0c0bbe89df
commit
cc73564ed5
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue