feat: 完成头像组件封装

This commit is contained in:
陈淳
2023-03-14 16:32:47 +08:00
parent cd9e27bcf3
commit 2824e1325d
3 changed files with 31 additions and 8 deletions

View File

@@ -3,9 +3,10 @@ import { defineStore } from 'pinia'
const useUserStore = defineStore('user',
{
state: () => ({
id:'',
token: '',
name: '',
avatar: '',
name: '登录用户',
icon: null,
roles: ['admin'],
permissions: ['*:*:*']
}),