fix:修复bug
This commit is contained in:
+11
-1
@@ -3,13 +3,23 @@ import {
|
||||
appid
|
||||
} from './url'
|
||||
|
||||
// 获取多语言翻译文本
|
||||
const getLoadingText = () => {
|
||||
try {
|
||||
const lang = uni.getStorageSync('language') || 'zh-CN'
|
||||
return lang === 'en-US' ? 'Loading...' : '加载中...'
|
||||
} catch (e) {
|
||||
return '加载中...'
|
||||
}
|
||||
}
|
||||
|
||||
const request = (option) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
// 默认不显示加载中提示
|
||||
if (!option.hideLoading) {
|
||||
uni.showLoading({
|
||||
title: option.loadingText || '加载中...',
|
||||
title: option.loadingText || getLoadingText(),
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
export const URL = "https://my.gxfs123.com/api" //正式服务器
|
||||
// export const URL = "https://fansdev.gxfs123.com/api" //测试服务器
|
||||
// export const URL = "https://my.gxfs123.com/api" //正式服务器
|
||||
export const URL = "https://fansdev.gxfs123.com/api" //测试服务器
|
||||
// export const URL = "http://192.168.5.149:8080" //本地调试
|
||||
// export const URL = "http://127.0.0.1:8080" //本地调试
|
||||
|
||||
|
||||
Reference in New Issue
Block a user