From 4f347ad66982b815d0e803b4ab3447e28b2204e4 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期四, 12 十月 2023 16:11:39 +0800
Subject: [PATCH] feat: 从cookie中取token,通过拦截器添加到每个请求头中;登录失效跳转到登录页
---
src/components/layout/components/AppMain.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/layout/components/AppMain.vue b/src/components/layout/components/AppMain.vue
index 7cdbb3d..f14d709 100644
--- a/src/components/layout/components/AppMain.vue
+++ b/src/components/layout/components/AppMain.vue
@@ -24,16 +24,17 @@
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.app-main {
- margin-left: 10px;
box-sizing: border-box;
display: flex;
flex: 1;
flex-direction: column;
+ background-color: $color-bg;
// height: 100%;
- width: 100%;
+ width: calc(100% - 200px);
.app-main-content {
width: 100%;
- overflow-y: auto;
+ overflow-y: hidden;
+ height: calc(100% - 50px);
}
}
</style>
--
Gitblit v1.8.0