src/views/login/index.vue
@@ -77,7 +77,7 @@ }, created () { //跳转到统一登录页 window.location.replace('http://dev.jxpskj.com:8020/ncny/login.html') // window.location.replace('http://dev.jxpskj.com:8020/ncny/login.html') var that = this this.newAxios = axios.create({ @@ -114,7 +114,6 @@ if (res.data.access_token) { this.$store.commit('setUser', res.data) auth.setToken(res.data.access_token) console.log('23232323', res.data) window.localStorage.setItem('userName', res.data.nick_name)//赋值 this.$router.push({ path: '/' }) } else {