mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
wip: multi-language support
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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() {
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user