Skip to content

Commit

Permalink
docs: app config
Browse files Browse the repository at this point in the history
  • Loading branch information
cole committed Jul 28, 2024
1 parent b13dcb8 commit d74a2c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ import { createAppInstance } from './useAppInstance'
export default defineComponent({
inheritAttrs: false,
setup () {
/**
* 实际开发中,可能不需要【多语言、定制主题】等。为方便删除相关逻辑、以及理解数据流向。没有在这里初始化,可能会导致一些问题。
* 例如非 Layout 组件内没有多语言、定制主题等。
*
* 如有需要,请把初始化相关逻辑迁移到 App.jsx
* src/layout/components/language/index.jsx
* src/layout/components/settings/ThemeSettings.jsx
*/
const localeMessage = ref({})

const theme = ref('dark')
Expand Down

0 comments on commit d74a2c2

Please sign in to comment.