vue3-h5-template/dist/assets/index.19958976.js
2021-04-01 15:11:55 +08:00

2 lines
1.4 KiB
JavaScript

import{r as e,o as t,c as o,a as n,w as s,F as a,b as r,d as u,t as c,u as l,e as m,f as p,g as i,h as d}from"./vendor.48f0ba09.js";!function(e=".",t="__import__"){try{self[t]=new Function("u","return import(u)")}catch(o){const n=new URL(e,location),s=e=>{URL.revokeObjectURL(e.src),e.remove()};self[t]=e=>new Promise(((o,a)=>{const r=new URL(e,n);if(self[t].moduleMap[r])return o(self[t].moduleMap[r]);const u=new Blob([`import * as m from '${r}';`,`${t}.moduleMap['${r}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(u),onerror(){a(new Error(`Failed to import: ${e}`)),s(c)},onload(){o(self[t].moduleMap[r]),s(c)}});document.head.appendChild(c)})),self[t].moduleMap={}}}("/assets/");const f={},b={id:"nav"},h=r("Home"),v=r(" | "),w=r("About");f.render=function(r,u){const c=e("router-link"),l=e("router-view");return t(),o(a,null,[n("div",b,[n(c,{to:"/"},{default:s((()=>[h])),_:1}),v,n(c,{to:"/about"},{default:s((()=>[w])),_:1})]),n(l)],64)};const _=m(),g={expose:[],props:{msg:String},setup(e){const s=u({count:0});return _(((r,u)=>(t(),o(a,null,[n("h1",null,c(e.msg),1),n("button",{onClick:u[1]||(u[1]=e=>l(s).count++)},"count is: "+c(l(s).count),1)],64))))},__scopeId:"data-v-f1116804"},L={};L.render=function(e,n){return t(),o("h1",null,"About Page")};const R=[{path:"/",name:"Home",component:g},{path:"/about",name:"About",component:L}],U=p({history:i(),routes:R});d(f).use(U).mount("#app");