提交 341ab86f authored 作者: 王鹏飞's avatar 王鹏飞

feat: 更新isAdmin计算逻辑,支持多个管理员ID

上级 04de15b2
...@@ -39,7 +39,7 @@ export const useUserStore = defineStore({ ...@@ -39,7 +39,7 @@ export const useUserStore = defineStore({
}), }),
getters: { getters: {
isLogin: (state) => !!state.user, isLogin: (state) => !!state.user,
isAdmin: (state) => state.user?.id === '6602032005293015040', isAdmin: (state) => ['6602032005293015040', '6671222170875592704'].includes(state.user?.id || ''),
}, },
actions: { actions: {
async getUser() { async getUser() {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论