Commit d97545be by chenyr

退出登录跳转路径

parent 4af9ab46
......@@ -61,6 +61,7 @@
import { doLogin, loginOut } from "@/api/home.js";
import { mapGetters } from "vuex";
import Cookies from "js-cookie";
import router from "@/router";
export default {
data () {
......@@ -93,7 +94,8 @@ export default {
Cookies.remove('JSESSIONID')
loginOut({},).then((res) => {
console.log(res);
window.location.href = 'http://47.92.225.109:8300/login'
this.$router.push({path: "/login"});
//window.location.href = 'http://47.92.225.109:8300/login'
}).catch(err => {
console.log(err);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment