Merge branch 'main' of https://git.light120.com/zc/admin_core
This commit is contained in:
10
src/index.js
10
src/index.js
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user