mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-28 02:47:22 +08:00
✨ feat: 优化登录失效
This commit is contained in:
@@ -199,8 +199,7 @@ const selectItem = async (key: string) => {
|
||||
switch (key) {
|
||||
case 'logout':
|
||||
logout().then(() => {
|
||||
store.state.user = null;
|
||||
localStorage.clear();
|
||||
store.commit('logout');
|
||||
router.push('/login');
|
||||
});
|
||||
break;
|
||||
@@ -241,7 +240,7 @@ const checkForUpdates = async () => {
|
||||
|
||||
const toGithubRelease = () => {
|
||||
if (updateInfo.value.hasUpdate) {
|
||||
store.commit('SET_SHOW_UPDATE_MODAL', true)
|
||||
store.commit('setShowUpdateModal', true)
|
||||
} else {
|
||||
window.open('https://github.com/algerkong/AlgerMusicPlayer/releases', '_blank');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user