refactor: 使用更简洁的方式进行认证
This commit is contained in:
@@ -274,7 +274,7 @@ const handleSignUp = async () => {
|
||||
// 页面初始化时检查是否已有有效token
|
||||
const checkExistingToken = async () => {
|
||||
try {
|
||||
const isValid = await AuthManager.verifyToken();
|
||||
const isValid = await AuthManager.isAuthenticated();
|
||||
if (isValid) {
|
||||
// 如果token仍然有效,直接跳转到project页面
|
||||
router.go(-1);
|
||||
|
||||
Reference in New Issue
Block a user