fix:修复bug

This commit is contained in:
2025-11-12 11:25:25 +08:00
parent 43dc65836d
commit 089b8d708e
16 changed files with 794 additions and 156 deletions
+11 -1
View File
@@ -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
})
}