feat: 添加登录页面URL配置及页面权限控制
- 在.env文件中新增VITE_LOGIN_URL配置 - 在App.vue中引入并调用usePageAuth以实现页面权限控制 - 更新route.ts以使用环境变量中的登录页面URL
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user