Merge branch 'main' into MVP

This commit is contained in:
Erlei Chen
2025-03-26 19:44:02 +08:00
43 changed files with 2456 additions and 266 deletions
+3 -1
View File
@@ -3,6 +3,7 @@ import agent from './module/agent.js'
import device from './module/device.js'
import user from './module/user.js'
import ota from './module/ota.js'
import admin from './module/admin.js'
/**
* 接口地址
@@ -29,5 +30,6 @@ export default {
user,
agent,
device,
ota
ota,
admin
}
+20
View File
@@ -0,0 +1,20 @@
import RequestService from '../httpRequest'
import {getServiceUrl} from '../api'
export default {
// 用户列表
getUserList(callback) {
RequestService.sendRequest().url(`${getServiceUrl()}/api/v1/admin/users`)
.method('GET')
.success((res) => {
RequestService.clearRequestTime()
callback(res)
})
.fail(() => {
RequestService.reAjaxFun(() => {
this.getList()
})
}).send()
},
}
+3 -3
View File
@@ -26,9 +26,9 @@ export default {
.method('GET')
.type('blob')
.header({
'Content-Type': 'image/gif',
'Pragma': 'No-cache',
'Cache-Control': 'no-cache'
'Content-Type': 'image/gif',
'Pragma': 'No-cache',
'Cache-Control': 'no-cache'
})
.success((res) => {
RequestService.clearRequestTime();