feat:动态权限

This commit is contained in:
JaguarJack
2022-12-10 18:29:42 +08:00
parent 8c537e6656
commit c4270a2fc8
46 changed files with 948 additions and 177 deletions

View File

@@ -128,7 +128,7 @@ export const useUserStore = defineStore('UserStore', {
getUserInfo() {
return new Promise((resolve, reject) => {
http
.get('/user/info')
.get('/user/online')
.then(response => {
const { id, nickname, email, avatar, permissions, roles, rememberToken, status } = response.data.data
// set user info