修改用户信息保存是否完善
This commit is contained in:
21
src/pages/home/index.tsx
Normal file
21
src/pages/home/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import { View, } from '@tarojs/components';
|
||||
import { check_login_status } from '../../services/loginService';
|
||||
import Taro from '@tarojs/taro';
|
||||
const HomePage: React.FC = () => {
|
||||
let login_status = check_login_status()
|
||||
if (login_status) {
|
||||
Taro.redirectTo({ url: '/pages/list/index' })
|
||||
}
|
||||
else {
|
||||
Taro.redirectTo({ url: '/pages/login/index/index' })
|
||||
}
|
||||
|
||||
return (
|
||||
<View className="home_page">
|
||||
|
||||
</View>)
|
||||
|
||||
}
|
||||
|
||||
export default HomePage;
|
||||
Reference in New Issue
Block a user