From fbed54474d026f5e39c2b6b65b2cd36afbdcadfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Wed, 5 Nov 2025 21:08:03 +0800 Subject: [PATCH 1/3] 1 --- src/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.js b/src/index.js index fa56d43..9f574e5 100644 --- a/src/index.js +++ b/src/index.js @@ -149,6 +149,14 @@ class AdminFramework { store: this.store, render: h => h('router-view'), async created() { + // 初始化响应式 rem 设置 + uiTool.setRem() + + // 监听窗口大小变化,重新设置 rem + window.addEventListener('resize', () => { + uiTool.setRem() + }) + console.log('=== Admin Framework App Started ===') console.log('Framework Version:', framework.version) console.log('Config:', this.$config) From ff78438cfe33d0b0febc54b09ba3d14f46462d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Wed, 5 Nov 2025 21:13:35 +0800 Subject: [PATCH 2/3] 1 --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 9f574e5..b71daa4 100644 --- a/src/index.js +++ b/src/index.js @@ -160,6 +160,7 @@ class AdminFramework { console.log('=== Admin Framework App Started ===') console.log('Framework Version:', framework.version) console.log('Config:', this.$config) + // Auto restore menu and title on refresh const token = this.$store.state.user.token From cfe380218e85cfc97c5a6d34389f665e9fa252fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Wed, 5 Nov 2025 21:19:30 +0800 Subject: [PATCH 3/3] 1 --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b71daa4..63c456c 100644 --- a/src/index.js +++ b/src/index.js @@ -150,6 +150,7 @@ class AdminFramework { render: h => h('router-view'), async created() { // 初始化响应式 rem 设置 + uiTool.setRem() // 监听窗口大小变化,重新设置 rem @@ -160,7 +161,7 @@ class AdminFramework { console.log('=== Admin Framework App Started ===') console.log('Framework Version:', framework.version) console.log('Config:', this.$config) - + // Auto restore menu and title on refresh const token = this.$store.state.user.token