import MHeader from '@/components/m-header'; import MSticky from '@/components/m-sticky'; import { defineComponent } from 'vue'; import styles from './index.module.less'; import { useRouter } from 'vue-router'; import { Image, showToast } from 'vant'; import AiExam from './images/ai-exam.png'; import WoringPractice from './images/woring-practice.png'; import WoringStat from './images/woring-stat.png'; import request from '@/helpers/request'; import { browser } from '@/helpers/utils'; import { postMessage } from '@/helpers/native-message'; import WoringGuide from '@/custom-plugins/guide-page/woring-guide'; export default defineComponent({ name: 'wroing-book', setup() { const router = useRouter(); /** 错题练习 */ const onErrorPractice = async () => { try { const { data } = await request.post( '/edu-app/studentUnitExamination/errorEdition', { hideLoading: false, data: { page: 1, rows: 50 } } ); const temp = data || {}; if (temp.total > 0) { router.push({ path: '/error-question-mode' }); } else { setTimeout(() => { showToast('暂无错题'); }, 100); } } catch { // } }; return () => (