修改动态组件加载时机

This commit is contained in:
吕金泽
2022-03-24 01:59:04 +08:00
parent b6d0c2644d
commit c64302caac
3 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -54,8 +54,10 @@ import { ArrowDown } from '@element-plus/icons-vue'
import Tabs from './tabs.vue'
import Sidebar from './sidebar/sidebar.vue'
import { logout } from '@/scripts/auth'
import dynamicComponent from '@/scripts/dynamicComponent'
import { getCurrentInstance } from 'vue'
const { proxy } = getCurrentInstance()
dynamicComponent(getCurrentInstance().appContext.app)
</script>
<style scoped>
@@ -67,7 +69,6 @@ const { proxy } = getCurrentInstance()
}
.title{
font-family: PoetsenOne;
width: var(--mb-sidebar-width);
line-height: 60px;
font-size: 24px;
color: white;