From 78c2c070c36a8ade2c3b553ffabb4b7bcff82020 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Wed, 31 Aug 2022 17:43:24 +0800
Subject: [PATCH] 个人中心
---
src/views/login/index.vue | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index a16ab94..b8b1e3f 100644
--- a/src/views/login/index.vue
+++ b/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({
--
Gitblit v1.9.3