This commit is contained in:
张成
2025-11-06 11:53:01 +08:00

View File

@@ -149,10 +149,20 @@ class AdminFramework {
store: this.store, store: this.store,
render: h => h('router-view'), render: h => h('router-view'),
async created() { async created() {
// 初始化响应式 rem 设置
uiTool.setRem()
// 监听窗口大小变化,重新设置 rem
window.addEventListener('resize', () => {
uiTool.setRem()
})
console.log('=== Admin Framework App Started ===') console.log('=== Admin Framework App Started ===')
console.log('Framework Version:', framework.version) console.log('Framework Version:', framework.version)
console.log('Config:', this.$config) console.log('Config:', this.$config)
// Auto restore menu and title on refresh // Auto restore menu and title on refresh
const token = this.$store.state.user.token const token = this.$store.state.user.token
const authorityMenus = localStorage.getItem('authorityMenus') const authorityMenus = localStorage.getItem('authorityMenus')