wip: multi-language support

This commit is contained in:
vben
2020-11-23 00:35:15 +08:00
parent b49950a390
commit 737b1b190c
59 changed files with 512 additions and 272 deletions

View File

@@ -5,7 +5,6 @@ import Button from '/@/components/Button/index.vue';
import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum';
import { CopyOutlined, RedoOutlined, CheckOutlined } from '@ant-design/icons-vue';
import { appStore } from '/@/store/modules/app';
import { userStore } from '/@/store/modules/user';
import { ProjectConfig } from '/@/types/config';
import { useMessage } from '/@/hooks/web/useMessage';
@@ -97,7 +96,7 @@ export default defineComponent({
function handleClearAndRedo() {
localStorage.clear();
userStore.resumeAllState();
appStore.resumeAllState();
location.reload();
}

View File

@@ -7,7 +7,7 @@
<script lang="ts">
import { computed, defineComponent, PropType, ref, watch } from 'vue';
// hooks
import { useSetting } from '/@/hooks/core/useSetting';
import { useGlobSetting } from '/@/settings/use';
import { useTimeoutFn } from '/@/hooks/core/useTimeout';
import { useGo } from '/@/hooks/web/usePage';
@@ -30,7 +30,7 @@
},
setup(props) {
const showRef = ref<boolean>(!!props.showTitle);
const { globSetting } = useSetting();
const globSetting = useGlobSetting();
const go = useGo();
function handleGoHome() {

View File

@@ -4,7 +4,7 @@ import { RouterView, RouteLocation } from 'vue-router';
import FrameLayout from '/@/layouts/iframe/index.vue';
import { useTransition } from './useTransition';
import { useSetting } from '/@/hooks/core/useSetting';
import { useProjectSetting } from '/@/settings/use';
import { tabStore } from '/@/store/modules/tab';
import { appStore } from '/@/store/modules/app';
@@ -29,7 +29,7 @@ export default defineComponent({
const { on: transitionOn } = useTransition();
on = transitionOn;
}
const { projectSetting } = useSetting();
const projectSetting = useProjectSetting();
return () => {
const {
routerTransition,