瀏覽代碼

用户信息展示替换为用户姓名

lxf 2 年之前
父節點
當前提交
7c2d5ed63f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/headerBar/header-bar.vue

+ 2 - 2
src/components/headerBar/header-bar.vue

@@ -203,7 +203,7 @@ const autoListChidrenNum = ref(0)
 const isEidtType = ref(false)
 const leftBanerType = ref(2)
 
-const userData = ref(Cookies.get('username') || '')
+const userData = ref(Cookies.get('nickName') || '')
 const commonsRouterList = ref([])
 const activeLeftData = ref({})
 const openLeftBaner = (i,index) => {
@@ -355,7 +355,7 @@ onMounted(() => {
 	calcAutoListChidren()
 	window.addEventListener('resize', calcAutoListChidren);
 	proxy.get('/getInfo').then(res => {
-		userData.value = res.user.userName
+		userData.value = res.user.nickName
 	})
 	proxy.get('/system/menu/list').then(res => {
 		res.data = res.data.map(item => {