mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-24 13:05:02 +00:00
refactor: refactored multi-language modules to support lazy loading and remote loading
This commit is contained in:
11
src/App.vue
11
src/App.vue
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ConfigProvider v-bind="lockEvent" :locale="antConfigLocale">
|
||||
<ConfigProvider v-bind="lockEvent" :locale="getAntdLocale">
|
||||
<AppProvider>
|
||||
<RouterView />
|
||||
</AppProvider>
|
||||
@@ -21,9 +21,7 @@
|
||||
components: { ConfigProvider, AppProvider },
|
||||
setup() {
|
||||
// support Multi-language
|
||||
const { antConfigLocale, setLocale } = useLocale();
|
||||
|
||||
setLocale();
|
||||
const { getAntdLocale } = useLocale();
|
||||
|
||||
// Initialize vuex internal system configuration
|
||||
initAppConfigStore();
|
||||
@@ -31,10 +29,7 @@
|
||||
// Create a lock screen monitor
|
||||
const lockEvent = useLockPage();
|
||||
|
||||
return {
|
||||
antConfigLocale,
|
||||
lockEvent,
|
||||
};
|
||||
return { getAntdLocale, lockEvent };
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user