提交 | 用户 | age
|
2f6253
|
1 |
<template> |
116a1f
|
2 |
<ConfigProvider v-bind="lockEvent" :locale="antConfigLocale"> |
74e62c
|
3 |
<AppProvider> |
V |
4 |
<router-view /> |
|
5 |
</AppProvider> |
2f6253
|
6 |
</ConfigProvider> |
陈 |
7 |
</template> |
|
8 |
|
|
9 |
<script lang="ts"> |
|
10 |
import { defineComponent } from 'vue'; |
|
11 |
import { ConfigProvider } from 'ant-design-vue'; |
|
12 |
|
eba557
|
13 |
import { initAppConfigStore } from '/@/logics/initAppConfig'; |
70fba7
|
14 |
|
737b1b
|
15 |
import { useLockPage } from '/@/hooks/web/useLockPage'; |
99ac30
|
16 |
import { useLocale } from '/@/locales/useLocale'; |
2f1255
|
17 |
|
74e62c
|
18 |
import { AppProvider } from '/@/components/Application'; |
V |
19 |
|
2f6253
|
20 |
export default defineComponent({ |
34c09f
|
21 |
name: 'App', |
74e62c
|
22 |
components: { ConfigProvider, AppProvider }, |
2f6253
|
23 |
setup() { |
ca4f1a
|
24 |
// support Multi-language |
99ac30
|
25 |
const { antConfigLocale, setLocale } = useLocale(); |
V |
26 |
setLocale(); |
|
27 |
|
46e087
|
28 |
// Initialize vuex internal system configuration |
V |
29 |
initAppConfigStore(); |
|
30 |
// Create a lock screen monitor |
|
31 |
const lockEvent = useLockPage(); |
737b1b
|
32 |
|
2f6253
|
33 |
return { |
737b1b
|
34 |
antConfigLocale, |
46e087
|
35 |
lockEvent, |
2f6253
|
36 |
}; |
陈 |
37 |
}, |
|
38 |
}); |
|
39 |
</script> |