Merge remote-tracking branch origin into feature/juguohong/20250816
This commit is contained in:
10
src/app.ts
10
src/app.ts
@@ -1,11 +1,12 @@
|
||||
import { Component, ReactNode } from 'react'
|
||||
import Taro from '@tarojs/taro';
|
||||
import './nutui-theme.scss'
|
||||
import './app.scss'
|
||||
import { useDictionaryStore } from './store/dictionaryStore'
|
||||
import { useGlobalStore } from './store/global'
|
||||
import { check_login_status } from './services/loginService';
|
||||
|
||||
// import { getNavbarHeight } from "@/utils/getNavbarHeight";
|
||||
|
||||
interface AppProps {
|
||||
children: ReactNode
|
||||
}
|
||||
@@ -15,13 +16,6 @@ class App extends Component<AppProps> {
|
||||
|
||||
onLaunch() {
|
||||
console.log('小程序启动,初始化逻辑写这里')
|
||||
// 已经登录过就跳转到 列表页
|
||||
let is_login = check_login_status()
|
||||
if (is_login) {
|
||||
Taro.redirectTo({
|
||||
url: '/pages/list/index'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
Reference in New Issue
Block a user