优化设备配置流程,重构用户增删改查及信息下发逻辑

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-03-11 11:04:29 +08:00
co-authored by Claude Opus 4.6
parent 05b388020b
commit f89f0f9531
10 changed files with 204 additions and 155 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ const hideLoading = () => {
}
}
const ajax = (url, params, methos, loading = true, title = "加载中...") => {
const ajax = (url, params, methos, loading = true, title = "加载中...", contentType = "application/json") => {
let requestUrl = app.globalData.wxRequestUrl + url;
if (loading) {
showLoading(title);
@@ -28,7 +28,7 @@ const ajax = (url, params, methos, loading = true, title = "加载中...") => {
return new Promise((resolve, reject) => {
let header = {
"content-type": "application/json"
"content-type": contentType
};
let token = wx.getStorageSync("token");