mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-17 02:07:29 +08:00
feat: 修改Cookie文字
This commit is contained in:
@@ -41,7 +41,7 @@ const loginByToken = async () => {
|
||||
if (user.data && user.data.profile) {
|
||||
const successMsg = t('login.message.tokenLoginSuccess');
|
||||
message.success(successMsg);
|
||||
emit('loginSuccess', user.data.profile, 'token');
|
||||
emit('loginSuccess', user.data.profile, 'cookie');
|
||||
} else {
|
||||
// token无效,清除localStorage
|
||||
localStorage.removeItem('token');
|
||||
|
||||
Reference in New Issue
Block a user