mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
样式调整
This commit is contained in:
parent
5934cf718d
commit
18ea1e7acf
2 changed files with 31 additions and 1 deletions
30
main/manager-web/src/apis/module/model.js
Normal file
30
main/manager-web/src/apis/module/model.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import RequestService from '../httpRequest'
|
||||
import {getServiceUrl} from '../api'
|
||||
|
||||
|
||||
export default {
|
||||
// 获取模型配置列表
|
||||
getModelList(params, callback) {
|
||||
const queryParams = new URLSearchParams({
|
||||
modelType: params.modelType,
|
||||
modelName: params.modelName || '',
|
||||
page: params.page || 0,
|
||||
limit: params.limit || 10
|
||||
}).toString();
|
||||
|
||||
RequestService.sendRequest()
|
||||
.url(`${getServiceUrl()}/api/v1/models/models/list?${queryParams}`)
|
||||
.method('GET')
|
||||
.success((res) => {
|
||||
RequestService.clearRequestTime()
|
||||
callback(res)
|
||||
})
|
||||
.fail((err) => {
|
||||
console.error('获取模型列表失败:', err)
|
||||
RequestService.reAjaxFun(() => {
|
||||
this.getModelList(params, callback)
|
||||
})
|
||||
}).send()
|
||||
},
|
||||
|
||||
}
|
||||
|
|
@ -349,7 +349,7 @@ $table-bg-color: #ecf1fd;
|
|||
background: white;
|
||||
border-radius: 12px;
|
||||
padding: 15px;
|
||||
margin: -10px 15px;
|
||||
margin: 15px;
|
||||
}
|
||||
|
||||
.table_bottom {
|
||||
|
|
|
|||
Loading…
Reference in a new issue