|
|
@@ -75,7 +75,7 @@ import {useAuth} from "@/hooks/useAuth";
|
|
|
import {EnumUserRole} from "@/common/enum";
|
|
|
import {useUserStore} from "@/store/userStore";
|
|
|
|
|
|
-const {hasPermission} = useAuth();
|
|
|
+const {checkVipPermission} = useAuth();
|
|
|
|
|
|
const props = withDefaults(defineProps<{
|
|
|
mode: HistoryMode;
|
|
|
@@ -152,7 +152,7 @@ const handleRuleClick = (descriptor: IPlanEnrollDescriptor, history: IPlanEnroll
|
|
|
}
|
|
|
|
|
|
const handleAddVoluntary = async (item: IPlanEnrollHistory) => {
|
|
|
- const hasAuth = hasPermission([EnumUserRole.VIP]);
|
|
|
+ const hasAuth = checkVipPermission();
|
|
|
if (!hasAuth) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -162,7 +162,7 @@ const handleAddVoluntary = async (item: IPlanEnrollHistory) => {
|
|
|
}
|
|
|
|
|
|
const handleRateVoluntary = (item: IPlanEnrollHistory) => {
|
|
|
- const hasAuth = hasPermission([EnumUserRole.VIP]);
|
|
|
+ const hasAuth = checkVipPermission();
|
|
|
if (!hasAuth) {
|
|
|
return;
|
|
|
}
|