|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<el-container class="hc-layout-box">
|
|
<el-container class="hc-layout-box">
|
|
<el-header class="hc-layout-header">
|
|
<el-header class="hc-layout-header">
|
|
- <div class="hc-layout-header-logo" :style="`width: ${isCollapse ? '90px' : '200px'};`">
|
|
|
|
|
|
+ <div class="hc-layout-header-logo" :style="`width: ${isCollapse ? '90px' : '200px'};`" @click="logoClick">
|
|
<img id="logo-icon" :src="appLogoIcon" alt="">
|
|
<img id="logo-icon" :src="appLogoIcon" alt="">
|
|
<img v-show="!isCollapse" id="logo-name" :src="appLogoName" alt="">
|
|
<img v-show="!isCollapse" id="logo-name" :src="appLogoName" alt="">
|
|
</div>
|
|
</div>
|
|
@@ -47,6 +47,7 @@
|
|
import { nextTick, onMounted, ref } from 'vue'
|
|
import { nextTick, onMounted, ref } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
+import { initButtons } from '~sto/app'
|
|
import HcSocket from '~src/plugins/HcSocket'
|
|
import HcSocket from '~src/plugins/HcSocket'
|
|
import { getObjValue, isNullES } from 'js-fast-way'
|
|
import { getObjValue, isNullES } from 'js-fast-way'
|
|
|
|
|
|
@@ -75,7 +76,7 @@ const menuBarData = ref([])
|
|
|
|
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
-
|
|
|
|
|
|
+ initButtons()
|
|
})
|
|
})
|
|
|
|
|
|
//路由信息
|
|
//路由信息
|
|
@@ -142,6 +143,11 @@ const cascaderChange = () => {
|
|
reloadRouter.value = true
|
|
reloadRouter.value = true
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+//首页
|
|
|
|
+const logoClick = () => {
|
|
|
|
+ router.push({ name: 'home-index' })
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|