mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
update: mobile 服务端接口地址提示语优化
This commit is contained in:
@@ -87,12 +87,18 @@ async function testServerBaseUrl() {
|
||||
if (response.statusCode === 200) {
|
||||
return true
|
||||
} else {
|
||||
toast.error(t('message.invalidAddress'))
|
||||
toast.error({
|
||||
msg: t('message.invalidAddress'),
|
||||
duration: 3000,
|
||||
})
|
||||
return false
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('测试服务端地址失败:', error)
|
||||
toast.error(t('message.invalidAddress'))
|
||||
toast.error({
|
||||
msg: t('message.invalidAddress'),
|
||||
duration: 3000,
|
||||
})
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user