This commit is contained in:
2026-06-16 19:26:48 +08:00
parent 77e3a85134
commit d7461853cf
20 changed files with 1229 additions and 223 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
import { useUserStore } from '@/store'
// TODO: 替换为实际的 API 地址
export const baseUrl = 'https://sggl.sedin.com.cn/sgglapi/api/'
export const baseUrl = 'https://lygcgs.com.cn:8078/shjapi/api/'
// ===== 防止重复请求 =====
const pendingRequests = new Map()
@@ -129,6 +129,7 @@ export function request(options) {
},
fail: (err) => {
removePending(finalConfig) // 网络失败也要清理标识
uni.hideLoading()
uni.showToast({ title: '网络连接失败', icon: 'none' })
reject(err)
}