feat: 联调对话功能
This commit is contained in:
@@ -293,7 +293,9 @@ function handleLogin() {
|
||||
uni.setStorageSync('clinical-thinking-access-token', result.tokens.access)
|
||||
uni.setStorageSync('clinical-thinking-refresh-token', result.tokens.refresh)
|
||||
showToast(result.message || '正在进入系统...')
|
||||
showConfigPage.value = true
|
||||
uni.redirectTo({
|
||||
url: '/pages/config/config'
|
||||
})
|
||||
}).catch(error => {
|
||||
showToast(error instanceof Error ? error.message : '登录失败,请稍后重试')
|
||||
}).finally(() => {
|
||||
@@ -348,10 +350,6 @@ function showToast(message: string) {
|
||||
if (toastTimer) clearTimeout(toastTimer)
|
||||
toastMessage.value = message
|
||||
toastVisible.value = true
|
||||
uni.showToast({
|
||||
title: message,
|
||||
icon: 'none'
|
||||
})
|
||||
toastTimer = setTimeout(() => {
|
||||
toastVisible.value = false
|
||||
}, 2500)
|
||||
|
||||
Reference in New Issue
Block a user