fix: support legacy home preview entry
| | |
| | | { |
| | | "pages": [ |
| | | { |
| | | "path": "pages/home/index", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "backgroundColor": "#F6F7FB" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/index/index", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| New file |
| | |
| | | <template> |
| | | <view class="redirect-page"> |
| | | <text>正在打开首页...</text> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="uts"> |
| | | onLoad(() => { |
| | | uni.reLaunch({ url: '/pages/index/index' }) |
| | | }) |
| | | </script> |
| | | |
| | | <style> |
| | | .redirect-page { display: flex; width: 100%; height: 100vh; background-color: #F6F7FB; align-items: center; justify-content: center; } |
| | | .redirect-page text { color: #8A919D; font-size: 28rpx; } |
| | | </style> |