From b3c1b95437d2edd914cb4e0c62c55737d7e61657 Mon Sep 17 00:00:00 2001 From: Michelle.Chung <1242874891@qq.com> Date: 星期一, 20 十一月 2023 19:27:03 +0800 Subject: [PATCH] add 新增响应解密私钥 ; add 新增 crypto#decryptBase64 Base64解码方法 ; update 更新响应拦截器增加响应解密逻辑 ; --- src/layout/index.vue | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index fb59a13..8239ed7 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -3,6 +3,14 @@ <div v-if="device === 'mobile' && sidebar.opened" class="drawer-bg" @click="handleClickOutside" /> <side-bar v-if="!sidebar.hide" class="sidebar-container" /> <div :class="{ hasTagsView: needTagsView, sidebarHide: sidebar.hide }" class="main-container"> + <!-- <el-scrollbar> + <div :class="{ 'fixed-header': fixedHeader }"> + <navbar ref="navbarRef" @setLayout="setLayout" /> + <tags-view v-if="needTagsView" /> + </div> + <app-main /> + <settings ref="settingRef" /> + </el-scrollbar> --> <div :class="{ 'fixed-header': fixedHeader }"> <navbar ref="navbarRef" @setLayout="setLayout" /> <tags-view v-if="needTagsView" /> @@ -52,17 +60,17 @@ const settingRef = ref(Settings); onMounted(() => { - nextTick(() => { - navbarRef.value.initTenantList(); - }) + nextTick(() => { + navbarRef.value.initTenantList(); + }) }) const handleClickOutside = () => { - useAppStore().closeSideBar({ withoutAnimation: false }) + useAppStore().closeSideBar({ withoutAnimation: false }) } const setLayout = () => { - settingRef.value.openSetting(); + settingRef.value.openSetting(); } </script> @@ -99,6 +107,7 @@ z-index: 9; width: calc(100% - #{$base-sidebar-width}); transition: width 0.28s; + background: $fixed-header-bg; } .hideSidebar .fixed-header { -- Gitblit v1.9.3