feat: 开站结束页面标记完成

This commit is contained in:
TsMask
2024-04-24 15:22:27 +08:00
parent 857f8c4313
commit 86e1f07f08
2 changed files with 39 additions and 19 deletions

View File

@@ -0,0 +1,39 @@
<script setup lang="ts">
import { guideDone } from '@/api';
import { stepState, fnStepNext, fnStepPrev } from '../hooks/useStep';
import { message, Form, 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';
import useAppStore from '@/store/modules/app';
import useI18n from '@/hooks/useI18n';
const { t } = useI18n();
const router = useRouter();
/**引导完成 */
function fnGuideDone() {
guideDone()
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
removeToken();
useAppStore().sysGuide = false;
}
})
.finally(() => {
router.push({ name: 'Login' });
});
}
</script>
<template>
<div>
<div>结束</div>
<p>安装网元会有网元信息-授权有效期</p>
=======提示
<p>未配置相关网元请进入系统后根据情况单独安装网元</p>
<a-button type="primary" @click="fnGuideDone()"> 开始使用 </a-button>
</div>
</template>
<style lang="less" scoped></style>

View File

@@ -1,19 +0,0 @@
<script setup lang="ts">
import { stepState, fnStepNext, fnStepPrev } from '../hooks/useStep';
import { message, Form, Modal } from 'ant-design-vue/lib';
</script>
<template>
<div>
<div>结束</div>
<p>安装网元会有网元信息-授权有效期</p>
=======提示
<p>未配置相关网元请进入系统后根据情况单独安装网元</p>
<a-button type="primary" @click="message.success('ok')">
开始使用
</a-button>
</div>
</template>
<style lang="less" scoped></style>