Просмотр исходного кода

用户权限增加项目一级

yf_zd 5 лет назад
Родитель
Сommit
f49c2fb4ce
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/components/Index.vue

+ 1 - 0
src/components/Index.vue

@@ -293,6 +293,7 @@ export default {
 			}).then((res) => {
 				this.username = res.data.username
 				this.userphoto = res.data.userphoto
+				localStorage.setItem('username', res.data.username)  // 0管理员  1用户
 			})
 			this.$axios({
 				method: 'get',