style:登录
Showing
3 changed files
with
40 additions
and
41 deletions
| ... | @@ -19,11 +19,11 @@ | ... | @@ -19,11 +19,11 @@ |
| 19 | </div> | 19 | </div> |
| 20 | </template> | 20 | </template> |
| 21 | <script> | 21 | <script> |
| 22 | import sidebarLeft from "./Sidebar/sidebarLeft"; | 22 | import sidebarLeft from "./Sidebar/sidebarLeft"; |
| 23 | import sidebarRight from "./Sidebar/sidebarRight"; | 23 | import sidebarRight from "./Sidebar/sidebarRight"; |
| 24 | import { logout } from "@/api/login.js"; | 24 | import { logout } from "@/api/login.js"; |
| 25 | import { mapGetters } from "vuex"; | 25 | import { mapGetters } from "vuex"; |
| 26 | export default { | 26 | export default { |
| 27 | components: { | 27 | components: { |
| 28 | sidebarLeft, | 28 | sidebarLeft, |
| 29 | sidebarRight, | 29 | sidebarRight, |
| ... | @@ -42,91 +42,91 @@ export default { | ... | @@ -42,91 +42,91 @@ export default { |
| 42 | this.$store.dispatch("user/resetState"); | 42 | this.$store.dispatch("user/resetState"); |
| 43 | this.$store.dispatch("permission/resetRoutes"); | 43 | this.$store.dispatch("permission/resetRoutes"); |
| 44 | this.$router.replace({ | 44 | this.$router.replace({ |
| 45 | path: "/jg" | 45 | path: "/login" |
| 46 | }) | 46 | }) |
| 47 | }) | 47 | }) |
| 48 | .catch((error) => { | 48 | .catch((error) => { |
| 49 | }) | 49 | }) |
| 50 | } | 50 | } |
| 51 | } | 51 | } |
| 52 | } | 52 | } |
| 53 | </script> | 53 | </script> |
| 54 | <style lang="scss" scoped> | 54 | <style lang="scss" scoped> |
| 55 | .menubg { | 55 | .menubg { |
| 56 | height: 34px; | 56 | height: 34px; |
| 57 | width: 130px !important; | 57 | width: 130px !important; |
| 58 | text-align: center; | 58 | text-align: center; |
| 59 | color: #ffffff; | 59 | color: #ffffff; |
| 60 | background: url("~@/image/navbar.png") no-repeat; | 60 | background: url("~@/image/navbar.png") no-repeat; |
| 61 | background-size: 100% 100%; | 61 | background-size: 100% 100%; |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | /deep/.el-menu-item { | 64 | /deep/.el-menu-item { |
| 65 | @extend .menubg; | 65 | @extend .menubg; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | /deep/.el-submenu { | 68 | /deep/.el-submenu { |
| 69 | @extend .menubg; | 69 | @extend .menubg; |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | /deep/.el-submenu__title { | 72 | /deep/.el-submenu__title { |
| 73 | height: 34px; | 73 | height: 34px; |
| 74 | color: #ffffff; | 74 | color: #ffffff; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | /deep/.el-submenu__title span { | 77 | /deep/.el-submenu__title span { |
| 78 | font-size: 14px; | 78 | font-size: 14px; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | .sidebarLeft { | 81 | .sidebarLeft { |
| 82 | position: relative; | 82 | position: relative; |
| 83 | top: 13px; | 83 | top: 13px; |
| 84 | width: 30%; | 84 | width: 30%; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | /deep/.el-menu { | 87 | /deep/.el-menu { |
| 88 | display: flex; | 88 | display: flex; |
| 89 | justify-content: space-between; | 89 | justify-content: space-between; |
| 90 | width: 100%; | 90 | width: 100%; |
| 91 | background: transparent !important; | 91 | background: transparent !important; |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | /deep/.el-menu-item { | 94 | /deep/.el-menu-item { |
| 95 | flex: 1; | 95 | flex: 1; |
| 96 | width: 100%; | 96 | width: 100%; |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | .sidebarRight { | 99 | .sidebarRight { |
| 100 | position: relative; | 100 | position: relative; |
| 101 | top: 13px; | 101 | top: 13px; |
| 102 | width: 30%; | 102 | width: 30%; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | // 导航选中背景色 | 105 | // 导航选中背景色 |
| 106 | .xuanzhong { | 106 | .xuanzhong { |
| 107 | background: url("~@/image/selNavbar.png") no-repeat; | 107 | background: url("~@/image/selNavbar.png") no-repeat; |
| 108 | background-size: 100% 100%; | 108 | background-size: 100% 100%; |
| 109 | color: #ffffff !important; | 109 | color: #ffffff !important; |
| 110 | font-weight: 700; | 110 | font-weight: 700; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | /deep/.el-menu-item:hover { | 113 | /deep/.el-menu-item:hover { |
| 114 | @extend .xuanzhong; | 114 | @extend .xuanzhong; |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | /deep/.el-submenu__title:hover { | 117 | /deep/.el-submenu__title:hover { |
| 118 | @extend .xuanzhong; | 118 | @extend .xuanzhong; |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | /deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus { | 121 | /deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus { |
| 122 | @extend .xuanzhong; | 122 | @extend .xuanzhong; |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | /deep/.is-active { | 125 | /deep/.is-active { |
| 126 | @extend .xuanzhong; | 126 | @extend .xuanzhong; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | .navbar { | 129 | .navbar { |
| 130 | height: $headerHeight; | 130 | height: $headerHeight; |
| 131 | overflow: hidden; | 131 | overflow: hidden; |
| 132 | position: relative; | 132 | position: relative; |
| ... | @@ -245,5 +245,5 @@ export default { | ... | @@ -245,5 +245,5 @@ export default { |
| 245 | } | 245 | } |
| 246 | } | 246 | } |
| 247 | } | 247 | } |
| 248 | } | 248 | } |
| 249 | </style> | 249 | </style> | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 | 2 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-04-27 17:09:51 | 4 | * @LastEditTime: 2023-05-25 14:07:28 |
| 5 | */ | 5 | */ |
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
| 7 | import axios from "axios"; | 7 | import axios from "axios"; |
| ... | @@ -72,7 +72,7 @@ function handleErrorData (status) { | ... | @@ -72,7 +72,7 @@ function handleErrorData (status) { |
| 72 | let code = Vue.prototype.BASE_API.CODE | 72 | let code = Vue.prototype.BASE_API.CODE |
| 73 | if (code == 'BDCSBPT') { | 73 | if (code == 'BDCSBPT') { |
| 74 | router.replace({ | 74 | router.replace({ |
| 75 | path: "/sb", | 75 | path: "/login", |
| 76 | query: { | 76 | query: { |
| 77 | redirect: router.history.current.fullPath, | 77 | redirect: router.history.current.fullPath, |
| 78 | }, | 78 | }, | ... | ... |
| ... | @@ -234,7 +234,6 @@ | ... | @@ -234,7 +234,6 @@ |
| 234 | }, | 234 | }, |
| 235 | methods: { | 235 | methods: { |
| 236 | uploadRecord (file) { | 236 | uploadRecord (file) { |
| 237 | console.log(file, 'eee11111111111111'); | ||
| 238 | this.requested = true | 237 | this.requested = true |
| 239 | this.files = file; | 238 | this.files = file; |
| 240 | const extension = file.name.split('.')[1] === 'xml' | 239 | const extension = file.name.split('.')[1] === 'xml' | ... | ... |
-
Please register or sign in to post a comment