Skip to content

Commit d74a2c2

Browse files
author
cole
committed
docs: app config
1 parent b13dcb8 commit d74a2c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/App.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ import { createAppInstance } from './useAppInstance'
77
export default defineComponent({
88
inheritAttrs: false,
99
setup () {
10+
/**
11+
* 实际开发中,可能不需要【多语言、定制主题】等。为方便删除相关逻辑、以及理解数据流向。没有在这里初始化,可能会导致一些问题。
12+
* 例如非 Layout 组件内没有多语言、定制主题等。
13+
*
14+
* 如有需要,请把初始化相关逻辑迁移到 App.jsx
15+
* src/layout/components/language/index.jsx
16+
* src/layout/components/settings/ThemeSettings.jsx
17+
*/
1018
const localeMessage = ref({})
1119

1220
const theme = ref('dark')

0 commit comments

Comments
 (0)