mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 04:03:42 +08:00
use absolute path for all routes
This commit is contained in:
@@ -356,7 +356,7 @@ onMounted(() => {
|
||||
ElMessage.error("加载会话列表失败!")
|
||||
})
|
||||
}).catch(() => {
|
||||
router.push('login')
|
||||
router.push('/login')
|
||||
});
|
||||
|
||||
const clipboard = new Clipboard('.copy-reply');
|
||||
@@ -417,7 +417,7 @@ const newChat = function () {
|
||||
|
||||
// 切换会话
|
||||
const changeChat = (chat) => {
|
||||
router.push("/chat/"+chat.chat_id)
|
||||
router.push("/chat/" + chat.chat_id)
|
||||
loadChat(chat)
|
||||
}
|
||||
|
||||
@@ -750,7 +750,7 @@ const logout = function () {
|
||||
activelyClose.value = true;
|
||||
httpGet('/api/user/logout').then(() => {
|
||||
removeUserToken();
|
||||
router.push('login');
|
||||
router.push('/login');
|
||||
}).catch(() => {
|
||||
ElMessage.error('注销失败!');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user