This commit is contained in:
wuzilong committed 2026-09-17 09:10:10 +08:00
1 parent a0da6427ef
commit 86694f739f
471 files changed
+62075 -44805

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
* 地磅模块 HTTP(裸 JSON,非门户 code/data 信封)
* 对齐 mobile-h5/src/utils/http/db.ts
*/
import { API_BASE, TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY } from '@/config/api'
import { TOKEN_KEY, REFRESH_TOKEN_KEY, USER_INFO_KEY, resolveApiBase } from '@/config/api'
const DB_COLLECTION_ROOT = /^\/(plans|inventory|weighing)$/
@@ -63,7 +63,7 @@ export function dbRequest(options = {}) {
const rawUrl = `${path}${query}`
const url = rawUrl.startsWith('http')
? rawUrl
: `${API_BASE}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
: `${resolveApiBase()}${rawUrl.startsWith('/') ? rawUrl : `/${rawUrl}`}`
return new Promise((resolve, reject) => {
uni.request({