731e47d8 by renchao@pashanhoo.com

style:登录修改

1 parent f4aa11c8
......@@ -17,10 +17,10 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import Breadcrumb from './Breadcrumb'
import { logout } from "@/api/login.js";
export default {
import { mapGetters } from 'vuex'
import Breadcrumb from './Breadcrumb'
import { logout } from "@/api/login.js";
export default {
components: {
Breadcrumb
},
......@@ -45,7 +45,7 @@ export default {
this.$store.dispatch("user/resetState");
this.$store.dispatch("permission/resetRoutes");
this.$router.replace({
path: "/sb"
path: "/login"
})
})
.catch((error) => {
......@@ -53,12 +53,12 @@ export default {
})
}
}
}
}
</script>
<style lang="scss" scoped>
@import "~@/styles/_handle.scss";
@import "~@/styles/_handle.scss";
.navbar-con {
.navbar-con {
position: relative;
.logo {
......@@ -79,9 +79,9 @@ export default {
line-height: 50px;
}
}
}
}
.navbar {
.navbar {
height: $headerHeight;
overflow: hidden;
position: relative;
......@@ -104,5 +104,5 @@ export default {
align-items: center;
}
}
}
}
</style>
......
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-04-27 17:09:51
* @LastEditTime: 2023-05-25 14:52:20
*/
import Vue from 'vue'
import axios from "axios";
......@@ -69,23 +69,12 @@ function handleErrorData (status) {
window.tokenValid = false;
Message.error("由于长时间未操作,请重新登录!");
localStorage.removeItem("token");
let code = Vue.prototype.BASE_API.CODE
if (code == 'BDCSBPT') {
router.replace({
path: "/sb",
path: "/login",
query: {
redirect: router.history.current.fullPath,
},
});
} else {
router.replace({
path: "/jg",
query: {
redirect: router.history.current.fullPath,
},
});
}
})
}
break;
case 404:
......