优化设备配置流程,重构用户增删改查及信息下发逻辑
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
05b388020b
commit
f89f0f9531
+2
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user