feat: 添加登录页面URL配置及页面权限控制

- 在.env文件中新增VITE_LOGIN_URL配置
- 在App.vue中引入并调用usePageAuth以实现页面权限控制
- 更新route.ts以使用环境变量中的登录页面URL
This commit is contained in:
陈剑术
2025-06-04 12:25:13 +08:00
parent f23d8128f9
commit dcae738e69
4 changed files with 55 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'
import { usePageAuth } from '@/hooks/usePageAuth'
usePageAuth()
onLaunch(() => {
console.log('App Launch')