feat: 开站引导开始完成接口
This commit is contained in:
@@ -39,7 +39,6 @@ export async function listMain() {
|
|||||||
const serialNum = (value as any).serialNum;
|
const serialNum = (value as any).serialNum;
|
||||||
const version = (value as any).version;
|
const version = (value as any).version;
|
||||||
|
|
||||||
|
|
||||||
const errCode = systemState && systemState['errorCode'];
|
const errCode = systemState && systemState['errorCode'];
|
||||||
var time = new Date();
|
var time = new Date();
|
||||||
// console.log(key, value);
|
// console.log(key, value);
|
||||||
@@ -59,7 +58,7 @@ export async function listMain() {
|
|||||||
ipAddress,
|
ipAddress,
|
||||||
serialNum,
|
serialNum,
|
||||||
name: key.split('/').join('_'),
|
name: key.split('/').join('_'),
|
||||||
expiryDate:'-',
|
expiryDate: '-',
|
||||||
status: 'Abnormal',
|
status: 'Abnormal',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -104,5 +103,30 @@ export function getSysConf() {
|
|||||||
return request({
|
return request({
|
||||||
url: `/sys-conf`,
|
url: `/sys-conf`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
whithToken: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首次引导安装开始
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function guideStart() {
|
||||||
|
return request({
|
||||||
|
url: `/guide`,
|
||||||
|
method: 'post',
|
||||||
|
whithToken: false,
|
||||||
|
repeatSubmit: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首次引导安装完成
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function guideDone() {
|
||||||
|
return request({
|
||||||
|
url: `/guide`,
|
||||||
|
method: 'put',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ export function savePara5GFile(data: Record<string, any>) {
|
|||||||
url: `/ne/info/para5GFile`,
|
url: `/ne/info/para5GFile`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data,
|
data: data,
|
||||||
|
timeout: 60_000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user