mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 23:53:55 +08:00
update: mobile 编辑源和语速音调页面样式调整
This commit is contained in:
@@ -42,6 +42,12 @@ const alovaInstance = createAlova({
|
||||
statesHook: VueHook,
|
||||
|
||||
beforeRequest: onAuthRequired((method) => {
|
||||
// h5动态获取最新的 baseURL,确保使用用户设置的服务器地址
|
||||
const currentBaseUrl = getEnvBaseUrl()
|
||||
if (currentBaseUrl !== method.baseURL) {
|
||||
method.baseURL = currentBaseUrl
|
||||
}
|
||||
|
||||
// 检查混合内容错误(HTTPS页面请求HTTP接口)
|
||||
const currentProtocol = typeof window !== 'undefined' && window.location.protocol
|
||||
const requestProtocol = method.baseURL?.split(':')[0]
|
||||
|
||||
Reference in New Issue
Block a user