style: 引导接口函数变更
This commit is contained in:
@@ -106,38 +106,3 @@ export function getSysConf() {
|
|||||||
whithToken: false,
|
whithToken: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 首次引导开始
|
|
||||||
* @returns object
|
|
||||||
*/
|
|
||||||
export function bootloaderStart() {
|
|
||||||
return request({
|
|
||||||
url: `/bootloader`,
|
|
||||||
method: 'post',
|
|
||||||
whithToken: false,
|
|
||||||
repeatSubmit: false,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 首次引导完成
|
|
||||||
* @returns object
|
|
||||||
*/
|
|
||||||
export function bootloaderDone() {
|
|
||||||
return request({
|
|
||||||
url: `/bootloader`,
|
|
||||||
method: 'put',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 引导系统数据重置
|
|
||||||
* @returns object
|
|
||||||
*/
|
|
||||||
export function bootloaderReset() {
|
|
||||||
return request({
|
|
||||||
url: `/bootloader`,
|
|
||||||
method: 'delete',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|||||||
51
src/api/system/quick-start/bootloader.ts
Normal file
51
src/api/system/quick-start/bootloader.ts
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
import { request } from '@/plugins/http-fetch';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首次引导开始
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function bootloaderStart() {
|
||||||
|
return request({
|
||||||
|
url: `/bootloader`,
|
||||||
|
method: 'post',
|
||||||
|
whithToken: false,
|
||||||
|
repeatSubmit: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首次引导完成
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function bootloaderDone() {
|
||||||
|
return request({
|
||||||
|
url: `/bootloader`,
|
||||||
|
method: 'put',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 引导系统数据重置
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function bootloaderReset() {
|
||||||
|
return request({
|
||||||
|
url: `/bootloader`,
|
||||||
|
method: 'delete',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理员账号变更
|
||||||
|
* @returns object
|
||||||
|
*/
|
||||||
|
export function bootloaderAccount(username: string, password: string) {
|
||||||
|
return request({
|
||||||
|
url: `/bootloader/account`,
|
||||||
|
method: 'put',
|
||||||
|
data: {
|
||||||
|
username,
|
||||||
|
password,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -3,8 +3,8 @@ import { message } from 'ant-design-vue/lib';
|
|||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import { bootloaderReset } from '@/api';
|
|
||||||
import useLockedStore from '@/store/modules/locked';
|
import useLockedStore from '@/store/modules/locked';
|
||||||
|
import { bootloaderReset } from '@/api/system/quick-start/bootloader';
|
||||||
const lockedStore = useLockedStore();
|
const lockedStore = useLockedStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user