src/views/login/index.vue
@@ -112,6 +112,8 @@ 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 { this.$message({