feat(desktop): implement phase 2 native capabilities
This commit is contained in:
@@ -60,8 +60,8 @@ const checkHealth = async (baseUrl: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
const clearSessionForServerChange = () => {
|
||||
auth.logout();
|
||||
const clearSessionForServerChange = async () => {
|
||||
await auth.logout();
|
||||
studyStore.clearCurrentStudy();
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@ const save = async () => {
|
||||
return;
|
||||
}
|
||||
if (previous !== result.url) {
|
||||
clearSessionForServerChange();
|
||||
await clearSessionForServerChange();
|
||||
}
|
||||
ElMessage.success("服务器连接已确认");
|
||||
router.replace("/login");
|
||||
|
||||
Reference in New Issue
Block a user