fix: vip取值优化
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import {useUserStore} from '@/stores/index.js';
|
||||
import { useUserStore } from '@/stores/index.js';
|
||||
|
||||
// 判断是否是 VIP 用户
|
||||
export function isUserVip(): boolean {
|
||||
const userStore = useUserStore();
|
||||
return userStore.userInfo.isVip;
|
||||
return userStore?.userInfo?.isVip;
|
||||
}
|
||||
|
||||
// 用户头像
|
||||
|
||||
Reference in New Issue
Block a user