|
@@ -36,7 +36,7 @@ const currentSubjectIndex = ref<number>(-1);
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
const pagingRef = ref<ZPagingInstance>();
|
|
const pagingRef = ref<ZPagingInstance>();
|
|
|
|
|
|
|
|
-const { hasPermission } = useAuth();
|
|
|
|
|
|
|
+const { checkVipPermission } = useAuth();
|
|
|
const pageTitle = computed(() => {
|
|
const pageTitle = computed(() => {
|
|
|
const { isVHS, directed, questionType } = prevData.value;
|
|
const { isVHS, directed, questionType } = prevData.value;
|
|
|
if (isVHS) {
|
|
if (isVHS) {
|
|
@@ -96,7 +96,7 @@ const loadKnowledgeList = async () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleStartPractice = async (node: Study.KnowledgeNode) => {
|
|
const handleStartPractice = async (node: Study.KnowledgeNode) => {
|
|
|
- const hasAuth = hasPermission([EnumUserRole.VIP, EnumUserRole.AGENT, EnumUserRole.TEACHER]);
|
|
|
|
|
|
|
+ const hasAuth = checkVipPermission();
|
|
|
if (hasAuth) {
|
|
if (hasAuth) {
|
|
|
transferTo('/pagesStudy/pages/exam-start/exam-start', {
|
|
transferTo('/pagesStudy/pages/exam-start/exam-start', {
|
|
|
data: {
|
|
data: {
|