feat: 系统引导使用接口变更
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { guideDone } from '@/api';
|
||||
import { bootloaderDone } from '@/api';
|
||||
import { stepState, fnToStepName } from '../hooks/useStep';
|
||||
import { message, Form, Modal } from 'ant-design-vue/lib';
|
||||
import { Modal } from 'ant-design-vue/lib';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import { removeToken } from '@/plugins/auth-token';
|
||||
import { useRouter } from 'vue-router';
|
||||
@@ -68,11 +68,11 @@ function fnStepPrev() {
|
||||
|
||||
/**引导完成 */
|
||||
function fnGuideDone() {
|
||||
guideDone()
|
||||
bootloaderDone()
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
removeToken();
|
||||
useAppStore().sysGuide = false;
|
||||
useAppStore().bootloader = false;
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user