feat:logo、默认头像更换

This commit is contained in:
Xwen
2024-01-03 10:48:28 +08:00
parent ffaa3153b3
commit a78c2d805d
7 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ const useUserStore = defineStore("user", {
const user = res.user;
const avatar =
user.icon == "" || user.icon == null
? "/favicon.ico"
? "/acquiesce.png"
: import.meta.env.VITE_APP_BASEAPI + "/file/" + user.icon;
if (res.roleCodes && res.roleCodes.length > 0) {
// 验证返回的roles是否是一个非空数组