|
|
@@ -1,14 +1,3 @@
|
|
|
-<!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page -->
|
|
|
-<route lang="jsonc" type="home">
|
|
|
-{
|
|
|
- "style": {
|
|
|
- // 'custom' 表示开启自定义导航栏,默认 'default'
|
|
|
- "navigationStyle": "custom",
|
|
|
- "navigationBarTitleText": "首页"
|
|
|
- }
|
|
|
-}
|
|
|
-</route>
|
|
|
-
|
|
|
<script lang="ts" setup>
|
|
|
import { LOGIN_PAGE } from '@/router/config'
|
|
|
import { useThemeStore } from '@/store'
|
|
|
@@ -16,6 +5,15 @@ import { useThemeStore } from '@/store'
|
|
|
defineOptions({
|
|
|
name: 'Home',
|
|
|
})
|
|
|
+definePage({
|
|
|
+ // 使用 type: "home" 属性设置首页,其他页面不需要设置,默认为page
|
|
|
+ type: 'home',
|
|
|
+ style: {
|
|
|
+ // 'custom' 表示开启自定义导航栏,默认 'default'
|
|
|
+ navigationStyle: 'custom',
|
|
|
+ navigationBarTitleText: '首页',
|
|
|
+ },
|
|
|
+})
|
|
|
|
|
|
const themeStore = useThemeStore()
|
|
|
|