fix: 接口变更/请求方法为大写
This commit is contained in:
@@ -11,7 +11,7 @@ import { NE_TYPE_LIST } from '@/constants/ne-constants';
|
||||
export async function listMain() {
|
||||
const result = await request({
|
||||
url: '/api/rest/systemManagement/v1/elementType/all/objectType/systemState',
|
||||
method: 'get',
|
||||
method: 'GET',
|
||||
timeout: 60_000,
|
||||
});
|
||||
// console.log(result);
|
||||
@@ -69,7 +69,7 @@ export async function getServerTime() {
|
||||
// 发起请求
|
||||
const result = await request({
|
||||
url: `/api/rest/systemManagement/v1/elementType/OMC/objectType/time`,
|
||||
method: 'get',
|
||||
method: 'GET',
|
||||
});
|
||||
// 解析数据
|
||||
if (result.code === RESULT_CODE_SUCCESS && result.data) {
|
||||
@@ -87,7 +87,7 @@ export async function getServerTime() {
|
||||
export function getSysConf() {
|
||||
return request({
|
||||
url: `/sys-conf`,
|
||||
method: 'get',
|
||||
method: 'GET',
|
||||
whithToken: false,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user