import{d as s,q as i,a as o,S as c,R as l,a4 as g,D as w,E as d}from"./index-971588a5.js";import{M as p}from"./index-b5096637.js";import{I as a}from"./index-96cc08e7.js";const m="_woringBook_dw358_1",u="_woringHeader_dw358_6",_="_leftArrow_dw358_11",f="_title_dw358_14",k="_woringSecgtion_dw358_36",h="_woringImg_dw358_43",r={woringBook:m,woringHeader:u,leftArrow:_,title:f,woringSecgtion:k,woringImg:h},v=""+new URL("ai-exam-ac155650.png",import.meta.url).href,I=""+new URL("woring-practice-5f4735ad.png",import.meta.url).href,b=""+new URL("woring-stat-fe2f9a06.png",import.meta.url).href,A=s({name:"wroing-book",setup(){const t=i(),e=async()=>{try{const{data:n}=await w.post("/edu-app/studentUnitExamination/errorEdition",{hideLoading:!1,data:{page:1,rows:50}});(n||{}).total>0?t.push({path:"/error-question-mode"}):setTimeout(()=>{d("暂无错题")},100)}catch(n){}};return()=>o("div",{class:r.woringBook},[o(p,{position:"top"},{default:()=>[o(c,{border:!1,background:"transparent"},{content:()=>o("div",{class:r.woringHeader},[o("i",{onClick:()=>{l().isApp?g({api:"goBack"}):t.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",r.leftArrow]},null),o("span",{class:r.title},[o("i",null,null)])])})]}),o("div",{class:r.woringSecgtion},[o(a,{lazyLoad:!0,src:b,class:r.woringImg,onClick:()=>t.push("wroing-stat")},null),o(a,{lazyLoad:!0,src:I,class:r.woringImg,onClick:e},null),o(a,{lazyLoad:!0,src:v,class:r.woringImg,onClick:()=>t.push("ai-exam")},null)])])}});export{A as default};
