feat: 网元快速安装多语言翻译

This commit is contained in:
TsMask
2024-05-20 20:18:00 +08:00
parent 624f67ecca
commit 814b7b0058
10 changed files with 285 additions and 340 deletions

View File

@@ -2,11 +2,11 @@
import { PageContainer } from 'antdv-pro-layout';
import { defineAsyncComponent, watch, shallowRef, onMounted } from 'vue';
import { stepState, fnRestStepState } from './hooks/useStep';
import useI18n from '@/hooks/useI18n';
const { t } = useI18n();
// 异步加载组件
const Start = defineAsyncComponent(
() => import('./components/Start.vue')
);
const Start = defineAsyncComponent(() => import('./components/Start.vue'));
// 当前组件
const currentComponent = shallowRef(Start);
@@ -22,15 +22,13 @@ watch(
);
onMounted(() => {
fnRestStepState();
fnRestStepState(t);
});
</script>
<template>
<PageContainer>
<a-card
:bordered="false"
>
<a-card :bordered="false">
<!-- 插槽-卡片左侧 -->
<template #title>
<!-- 步骤进度 -->