e639032f by renchao@pashanhoo.com

style:登录

1 parent 0d04d432
......@@ -19,11 +19,11 @@
</div>
</template>
<script>
import sidebarLeft from "./Sidebar/sidebarLeft";
import sidebarRight from "./Sidebar/sidebarRight";
import { logout } from "@/api/login.js";
import { mapGetters } from "vuex";
export default {
import sidebarLeft from "./Sidebar/sidebarLeft";
import sidebarRight from "./Sidebar/sidebarRight";
import { logout } from "@/api/login.js";
import { mapGetters } from "vuex";
export default {
components: {
sidebarLeft,
sidebarRight,
......@@ -42,91 +42,91 @@ export default {
this.$store.dispatch("user/resetState");
this.$store.dispatch("permission/resetRoutes");
this.$router.replace({
path: "/jg"
path: "/login"
})
})
.catch((error) => {
})
}
}
}
}
</script>
<style lang="scss" scoped>
.menubg {
.menubg {
height: 34px;
width: 130px !important;
text-align: center;
color: #ffffff;
background: url("~@/image/navbar.png") no-repeat;
background-size: 100% 100%;
}
}
/deep/.el-menu-item {
/deep/.el-menu-item {
@extend .menubg;
}
}
/deep/.el-submenu {
/deep/.el-submenu {
@extend .menubg;
}
}
/deep/.el-submenu__title {
/deep/.el-submenu__title {
height: 34px;
color: #ffffff;
}
}
/deep/.el-submenu__title span {
/deep/.el-submenu__title span {
font-size: 14px;
}
}
.sidebarLeft {
.sidebarLeft {
position: relative;
top: 13px;
width: 30%;
}
}
/deep/.el-menu {
/deep/.el-menu {
display: flex;
justify-content: space-between;
width: 100%;
background: transparent !important;
}
}
/deep/.el-menu-item {
/deep/.el-menu-item {
flex: 1;
width: 100%;
}
}
.sidebarRight {
.sidebarRight {
position: relative;
top: 13px;
width: 30%;
}
}
// 导航选中背景色
.xuanzhong {
// 导航选中背景色
.xuanzhong {
background: url("~@/image/selNavbar.png") no-repeat;
background-size: 100% 100%;
color: #ffffff !important;
font-weight: 700;
}
}
/deep/.el-menu-item:hover {
/deep/.el-menu-item:hover {
@extend .xuanzhong;
}
}
/deep/.el-submenu__title:hover {
/deep/.el-submenu__title:hover {
@extend .xuanzhong;
}
}
/deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus {
/deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus {
@extend .xuanzhong;
}
}
/deep/.is-active {
/deep/.is-active {
@extend .xuanzhong;
}
}
.navbar {
.navbar {
height: $headerHeight;
overflow: hidden;
position: relative;
......@@ -245,5 +245,5 @@ export default {
}
}
}
}
}
</style>
......
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-04-27 17:09:51
* @LastEditTime: 2023-05-25 14:07:28
*/
import Vue from 'vue'
import axios from "axios";
......@@ -72,7 +72,7 @@ function handleErrorData (status) {
let code = Vue.prototype.BASE_API.CODE
if (code == 'BDCSBPT') {
router.replace({
path: "/sb",
path: "/login",
query: {
redirect: router.history.current.fullPath,
},
......
......@@ -234,7 +234,6 @@
},
methods: {
uploadRecord (file) {
console.log(file, 'eee11111111111111');
this.requested = true
this.files = file;
const extension = file.name.split('.')[1] === 'xml'
......