feat: 分包
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { View, } from '@tarojs/components';
|
||||
import { check_login_status } from '../../services/loginService';
|
||||
import { check_login_status } from '@/services/loginService';
|
||||
import { useUserActions } from '@/store/userStore';
|
||||
import Taro from '@tarojs/taro';
|
||||
|
||||
@@ -20,10 +20,10 @@ const HomePage: React.FC = () => {
|
||||
} catch (error) {
|
||||
console.error('获取用户信息失败:', error);
|
||||
// 如果获取用户信息失败,跳转到登录页
|
||||
Taro.redirectTo({ url: '/pages/login/index/index' });
|
||||
Taro.redirectTo({ url: '/login_pages/login/index/index' });
|
||||
}
|
||||
} else {
|
||||
Taro.redirectTo({ url: '/pages/login/index/index' });
|
||||
Taro.redirectTo({ url: '/login_pages/login/index/index' });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user