From 1fe0acf540f4baf6ca3a7b25ebfd2a194d18e26f Mon Sep 17 00:00:00 2001 From: tanyp <742354529@qq.com> Date: Tue, 25 Apr 2023 16:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/layout/Index copy.vue | 294 ++++++++++++++++++ .../src/components/layout/Index.vue | 160 +++++----- tansci-boot-ui/src/styles/index.scss | 2 +- tansci-boot-ui/src/utils/global.ts | 2 +- 4 files changed, 371 insertions(+), 87 deletions(-) create mode 100644 tansci-boot-ui/src/components/layout/Index copy.vue diff --git a/tansci-boot-ui/src/components/layout/Index copy.vue b/tansci-boot-ui/src/components/layout/Index copy.vue new file mode 100644 index 0000000..78c266d --- /dev/null +++ b/tansci-boot-ui/src/components/layout/Index copy.vue @@ -0,0 +1,294 @@ + + + \ No newline at end of file diff --git a/tansci-boot-ui/src/components/layout/Index.vue b/tansci-boot-ui/src/components/layout/Index.vue index 78c266d..50e741b 100644 --- a/tansci-boot-ui/src/components/layout/Index.vue +++ b/tansci-boot-ui/src/components/layout/Index.vue @@ -12,7 +12,7 @@ const logo = new URL('../../assets/image/logo.png', import.meta.url).href const state = reactive({ headerHeight: '52px', - asideWidth: '180px', + asideWidth: '260px', routers: [], defaultHeight: null, userVisible: false, @@ -54,12 +54,8 @@ function onDefaultHeight(){ state.defaultHeight = window.innerHeight } - function onHeaderCommand(command:any){ - if('logout' === command){ - logout() - } else if('personal' === command){ - state.userVisible = true - } + function onPersonal(){ + state.userVisible = true } const userRef = ref(); @@ -100,61 +96,72 @@