飞牛fpk打包,新增一个初始化页面。用于飞牛fpk安装完成后初始配置

This commit is contained in:
jianzhichu
2025-12-27 11:44:30 +08:00
parent 44e3962093
commit cc6906ea63
32 changed files with 848 additions and 1710 deletions
+12 -1
View File
@@ -8,9 +8,20 @@
import LoginBox from './LoginBox.vue';
import { useRouter } from 'vue-router';
import { message } from 'ant-design-vue';
import { onMounted } from 'vue';
import { useApiStore } from '@/store';
const router = useRouter();
onMounted(() => {
useApiStore()
.AppisInit()
.then((res) => {
if (res.code == 0 && res.data) {
} else {
router.push('/init');
}
});
});
function onLoginSuccess() {
if (isMobileBrowser()) router.push('/mobile');
else router.push('/dashboard');