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 {useCounterStore} from '@/store'
|
||||||
import './app.scss'
|
import './app.scss'
|
||||||
import './assets/scss/colorui.scss'
|
import './assets/scss/colorui.scss'
|
||||||
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
|
|
||||||
|
|
||||||
const pinia = createPinia()
|
const pinia = createPinia()
|
||||||
|
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||||
// pinia.use(piniaPluginPersistedstate)
|
// pinia.use(piniaPluginPersistedstate)
|
||||||
const App = createApp({
|
const App = createApp({
|
||||||
onShow(options) {
|
onShow(options) {
|
||||||
|
@ -17,11 +16,11 @@ const App = createApp({
|
||||||
console.log(token)
|
console.log(token)
|
||||||
if (token) {
|
if (token) {
|
||||||
Taro.switchTab({
|
Taro.switchTab({
|
||||||
// url:'/pages/mine/mine'
|
url: '/pages/mine/mine'
|
||||||
url: '/pages/projectManager/index/index'
|
// url: '/pages/projectManager/index/index'
|
||||||
|
|
||||||
})
|
})
|
||||||
// store.setSelected(2)
|
store.setSelected(2)
|
||||||
} else {
|
} else {
|
||||||
console.log(2222)
|
console.log(2222)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue