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 @@