浏览代码

fix: 打包部署

lkd9698906@163.com 11 月之前
父节点
当前提交
df02cff3ee
共有 53 个文件被更改,包括 46 次插入58 次删除
  1. 0 0
      dist/assets/Changepassword-4ef2bb7c.js
  2. 1 1
      dist/assets/CusNavigation-52f261c8.js
  3. 0 0
      dist/assets/Detail-08ffdbca.js
  4. 0 0
      dist/assets/Index-1db8dda2.js
  5. 0 0
      dist/assets/Index-38c591b5.js
  6. 0 0
      dist/assets/Index-42231d33.js
  7. 0 0
      dist/assets/Index-507c84bd.js
  8. 0 0
      dist/assets/Index-53d8e859.js
  9. 0 0
      dist/assets/Index-5f4424b9.js
  10. 0 0
      dist/assets/Index-604aafbb.js
  11. 0 0
      dist/assets/Index-7e08f2ed.js
  12. 0 0
      dist/assets/Index-84b06f11.js
  13. 0 0
      dist/assets/Index-9beaa1b3.js
  14. 0 0
      dist/assets/Index-aea59141.js
  15. 0 0
      dist/assets/Index-bb21bcee.js
  16. 0 0
      dist/assets/Index-d100c093.js
  17. 0 0
      dist/assets/Index-ee3cd550.js
  18. 0 0
      dist/assets/Index-f285b634.js
  19. 0 0
      dist/assets/Index-f9613e47.js
  20. 0 0
      dist/assets/Index-f98c3f42.js
  21. 0 0
      dist/assets/Index3-38f5e417.js
  22. 0 0
      dist/assets/Location-8884814b.js
  23. 0 0
      dist/assets/Log-9c25959b.js
  24. 0 0
      dist/assets/function-call-0875a39e.js
  25. 0 0
      dist/assets/index-14ec4a94.js
  26. 0 0
      dist/assets/index-18bc03a8.js
  27. 0 0
      dist/assets/index-4290e6be.js
  28. 0 0
      dist/assets/index-46890bc6.js
  29. 1 1
      dist/assets/index-58f6bbe0.js
  30. 1 1
      dist/assets/index-5dd3016f.js
  31. 1 1
      dist/assets/index-75ca044f.js
  32. 1 1
      dist/assets/index-856231c7.js
  33. 1 1
      dist/assets/index-a0171691.js
  34. 0 0
      dist/assets/index-a7cc295e.js
  35. 0 0
      dist/assets/index-c1d3cef3.js
  36. 0 0
      dist/assets/index-d713c94b.js
  37. 0 0
      dist/assets/index-ddf66cb5.js
  38. 1 1
      dist/assets/index-e270b3af.js
  39. 0 0
      dist/assets/index-e9453d64.js
  40. 1 1
      dist/assets/index-f37a4c38.js
  41. 1 1
      dist/assets/index-f5e64579.js
  42. 1 1
      dist/assets/mount-component-8daea98e.js
  43. 1 1
      dist/assets/on-popup-reopen-8ab517b6.js
  44. 1 1
      dist/assets/request-cc2f9a2f.js
  45. 1 1
      dist/assets/use-placeholder-1196d982.js
  46. 1 1
      dist/assets/use-route-0a2b7081.js
  47. 1 0
      dist/assets/use-scope-id-7611483c.js
  48. 0 1
      dist/assets/use-scope-id-99f946c2.js
  49. 0 0
      dist/assets/util-f84da12a.js
  50. 0 0
      dist/assets/vue-qrcode-reader-1a1b35e0.js
  51. 3 3
      dist/index.html
  52. 27 27
      src/router/index.ts
  53. 1 13
      vite.config.ts

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Changepassword-4ef2bb7c.js


+ 1 - 1
dist/assets/CusNavigation-e058e97b.js → dist/assets/CusNavigation-52f261c8.js

@@ -1 +1 @@
-import{d as k,r as v,u as x,j as n,b as i,c as t,f as h,P as c,e as r,C as d,t as w,F as C,_ as P}from"./index-2b8481dd.js";import{P as B}from"./index-11692499.js";import{I as N}from"./index-41637c73.js";const S={style:{height:"38px",padding:"10px",display:"flex","align-items":"center","border-bottom":"1px solid #f0f0f0"}},z={style:{"font-weight":"bold","font-size":"1.1rem",color:"#191A1A"}},A={style:{"flex-grow":"1"}},I=k({__name:"CusNavigation",props:{title:{type:String,default:void 0},gobackabled:{type:Boolean,default:!1},searchabled:{type:Boolean,default:!1},plusabled:{type:Boolean,default:!1}},setup(s,{expose:y}){const a=v(!1),l=v(!1),_=x(),b=o=>{console.log(o),_.go(-1)},f=()=>{a.value=!1},m=()=>{l.value=!1};return y({closeSearchPopup:f,closePlusPopup:m,closeAllPopup:()=>{f(),m()}}),(o,e)=>{const g=B,p=N;return n(),i(C,null,[t(g,{show:a.value,"onUpdate:show":e[0]||(e[0]=u=>a.value=u),position:"top","close-on-click-overlay":!0},{default:h(()=>[c(o.$slots,"search",{},void 0,!0)]),_:3},8,["show"]),t(g,{show:l.value,"onUpdate:show":e[1]||(e[1]=u=>l.value=u),position:"top"},{default:h(()=>[c(o.$slots,"plus",{},void 0,!0)]),_:3},8,["show"]),r("div",S,[s.gobackabled?(n(),i("div",{key:0,style:{"line-height":"0px"},class:"cus-goback",onClick:b},[t(p,{name:"static/images/icon-back.png",size:"1.7rem"})])):d("",!0),r("div",z,[r("span",null,w(s.title),1)]),r("div",A,[c(o.$slots,"default",{},void 0,!0)]),s.searchabled?(n(),i("div",{key:1,style:{"line-height":"0px","margin-left":"10px"},onClick:e[2]||(e[2]=()=>{a.value=!0})},[t(p,{name:"static/images/icon-search-black.png",size:"2rem"})])):d("",!0),s.plusabled?(n(),i("div",{key:2,style:{"line-height":"0px","margin-left":"10px"},onClick:e[3]||(e[3]=()=>{l.value=!0})},[t(p,{name:"static/images/icon-more.png",size:"1.5rem"})])):d("",!0)])],64)}}});const j=P(I,[["__scopeId","data-v-d5272661"]]);export{j as C};
+import{d as k,r as v,u as x,j as n,b as i,c as t,f as h,P as c,e as r,C as d,t as w,F as C,_ as P}from"./index-ddf66cb5.js";import{P as B}from"./index-c1d3cef3.js";import{I as N}from"./index-e9453d64.js";const S={style:{height:"38px",padding:"10px",display:"flex","align-items":"center","border-bottom":"1px solid #f0f0f0"}},z={style:{"font-weight":"bold","font-size":"1.1rem",color:"#191A1A"}},A={style:{"flex-grow":"1"}},I=k({__name:"CusNavigation",props:{title:{type:String,default:void 0},gobackabled:{type:Boolean,default:!1},searchabled:{type:Boolean,default:!1},plusabled:{type:Boolean,default:!1}},setup(s,{expose:y}){const a=v(!1),l=v(!1),_=x(),b=o=>{console.log(o),_.go(-1)},f=()=>{a.value=!1},m=()=>{l.value=!1};return y({closeSearchPopup:f,closePlusPopup:m,closeAllPopup:()=>{f(),m()}}),(o,e)=>{const g=B,p=N;return n(),i(C,null,[t(g,{show:a.value,"onUpdate:show":e[0]||(e[0]=u=>a.value=u),position:"top","close-on-click-overlay":!0},{default:h(()=>[c(o.$slots,"search",{},void 0,!0)]),_:3},8,["show"]),t(g,{show:l.value,"onUpdate:show":e[1]||(e[1]=u=>l.value=u),position:"top"},{default:h(()=>[c(o.$slots,"plus",{},void 0,!0)]),_:3},8,["show"]),r("div",S,[s.gobackabled?(n(),i("div",{key:0,style:{"line-height":"0px"},class:"cus-goback",onClick:b},[t(p,{name:"static/images/icon-back.png",size:"1.7rem"})])):d("",!0),r("div",z,[r("span",null,w(s.title),1)]),r("div",A,[c(o.$slots,"default",{},void 0,!0)]),s.searchabled?(n(),i("div",{key:1,style:{"line-height":"0px","margin-left":"10px"},onClick:e[2]||(e[2]=()=>{a.value=!0})},[t(p,{name:"static/images/icon-search-black.png",size:"2rem"})])):d("",!0),s.plusabled?(n(),i("div",{key:2,style:{"line-height":"0px","margin-left":"10px"},onClick:e[3]||(e[3]=()=>{l.value=!0})},[t(p,{name:"static/images/icon-more.png",size:"1.5rem"})])):d("",!0)])],64)}}});const j=P(I,[["__scopeId","data-v-d5272661"]]);export{j as C};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Detail-08ffdbca.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-1db8dda2.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-38c591b5.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-42231d33.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-507c84bd.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-53d8e859.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-5f4424b9.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-604aafbb.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-7e08f2ed.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-84b06f11.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-9beaa1b3.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-aea59141.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-bb21bcee.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-d100c093.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-ee3cd550.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-f285b634.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-f9613e47.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index-f98c3f42.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Index3-38f5e417.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Location-8884814b.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/Log-9c25959b.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/function-call-0875a39e.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-14ec4a94.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-18bc03a8.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-4290e6be.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-46890bc6.js


+ 1 - 1
dist/assets/index-067c9f4e.js → dist/assets/index-58f6bbe0.js

@@ -1 +1 @@
-import{c as T,n as f,m as w,e as x,g as y,d as h,D as P,I,N as S,a0 as C,P as B,w as D}from"./index-41637c73.js";import{d as N,r as d,a as z,o as j,p as A,V as O,w as R,c as u,m as V,T as _,z as q}from"./index-2b8481dd.js";function E(e,c){let o=null,i=0;return function(...n){if(o)return;const a=Date.now()-i,l=()=>{i=Date.now(),o=!1,e.apply(this,n)};a>=c?l():o=setTimeout(l,c)}}const[L,m]=T("back-top"),M={right:f,bottom:f,zIndex:f,target:[String,Object],offset:w(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};var U=N({name:L,inheritAttrs:!1,props:M,emits:["click"],setup(e,{emit:c,slots:o,attrs:i}){let n=!1;const a=d(!1),l=d(),s=d(),b=z(()=>x(y(e.zIndex),{right:h(e.right),bottom:h(e.bottom)})),k=t=>{var r;c("click",t),(r=s.value)==null||r.scrollTo({top:0,behavior:e.immediate?"auto":"smooth"})},v=()=>{a.value=s.value?B(s.value)>=+e.offset:!1},p=()=>{const{target:t}=e;if(typeof t=="string"){const r=document.querySelector(t);if(r)return r}else return t},g=()=>{S&&q(()=>{s.value=e.target?p():C(l.value),v()})};return P("scroll",E(v,100),{target:s}),j(g),A(()=>{n&&(a.value=!0,n=!1)}),O(()=>{a.value&&e.teleport&&(a.value=!1,n=!0)}),R(()=>e.target,g),()=>{const t=u("div",V({ref:e.teleport?void 0:l,class:m({active:a.value}),style:b.value,onClick:k},i),[o.default?o.default():u(I,{name:"back-top",class:m("icon")},null)]);return e.teleport?[u("div",{ref:l,class:m("placeholder")},null),u(_,{to:e.teleport},{default:()=>[t]})]:t}}});const G=D(U);export{G as B};
+import{c as T,n as f,m as w,e as x,g as y,d as h,D as P,I,N as S,a0 as C,P as B,w as D}from"./index-e9453d64.js";import{d as N,r as d,a as z,o as j,p as A,V as O,w as R,c as u,m as V,T as _,z as q}from"./index-ddf66cb5.js";function E(e,c){let o=null,i=0;return function(...n){if(o)return;const a=Date.now()-i,l=()=>{i=Date.now(),o=!1,e.apply(this,n)};a>=c?l():o=setTimeout(l,c)}}const[L,m]=T("back-top"),M={right:f,bottom:f,zIndex:f,target:[String,Object],offset:w(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};var U=N({name:L,inheritAttrs:!1,props:M,emits:["click"],setup(e,{emit:c,slots:o,attrs:i}){let n=!1;const a=d(!1),l=d(),s=d(),b=z(()=>x(y(e.zIndex),{right:h(e.right),bottom:h(e.bottom)})),k=t=>{var r;c("click",t),(r=s.value)==null||r.scrollTo({top:0,behavior:e.immediate?"auto":"smooth"})},v=()=>{a.value=s.value?B(s.value)>=+e.offset:!1},p=()=>{const{target:t}=e;if(typeof t=="string"){const r=document.querySelector(t);if(r)return r}else return t},g=()=>{S&&q(()=>{s.value=e.target?p():C(l.value),v()})};return P("scroll",E(v,100),{target:s}),j(g),A(()=>{n&&(a.value=!0,n=!1)}),O(()=>{a.value&&e.teleport&&(a.value=!1,n=!0)}),R(()=>e.target,g),()=>{const t=u("div",V({ref:e.teleport?void 0:l,class:m({active:a.value}),style:b.value,onClick:k},i),[o.default?o.default():u(I,{name:"back-top",class:m("icon")},null)]);return e.teleport?[u("div",{ref:l,class:m("placeholder")},null),u(_,{to:e.teleport},{default:()=>[t]})]:t}}});const G=D(U);export{G as B};

+ 1 - 1
dist/assets/index-b1358019.js → dist/assets/index-5dd3016f.js

@@ -1 +1 @@
-import{d as S,c as t,L as k}from"./index-2b8481dd.js";import{c as x,t as B,z as I,H as P,I as T,w as h}from"./index-41637c73.js";const[v,s]=x("tag"),w={size:String,mark:Boolean,show:B,type:I("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var y=S({name:v,props:w,emits:["close"],setup(o,{slots:n,emit:r}){const c=e=>{e.stopPropagation(),r("close",e)},i=()=>o.plain?{color:o.textColor||o.color,borderColor:o.color}:{color:o.textColor,background:o.color},d=()=>{var e;const{type:u,mark:m,plain:g,round:f,size:a,closeable:C}=o,l={mark:m,plain:g,round:f};a&&(l[a]=a);const b=C&&t(T,{name:"cross",class:[s("close"),P],onClick:c},null);return t("span",{style:i(),class:s([l,u])},[(e=n.default)==null?void 0:e.call(n),b])};return()=>t(k,{name:o.closeable?"van-fade":void 0},{default:()=>[o.show?d():null]})}});const _=h(y);export{_ as T};
+import{d as S,c as t,L as k}from"./index-ddf66cb5.js";import{c as x,t as B,z as I,H as P,I as T,w as h}from"./index-e9453d64.js";const[v,s]=x("tag"),w={size:String,mark:Boolean,show:B,type:I("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var y=S({name:v,props:w,emits:["close"],setup(o,{slots:n,emit:r}){const c=e=>{e.stopPropagation(),r("close",e)},i=()=>o.plain?{color:o.textColor||o.color,borderColor:o.color}:{color:o.textColor,background:o.color},d=()=>{var e;const{type:u,mark:m,plain:g,round:f,size:a,closeable:C}=o,l={mark:m,plain:g,round:f};a&&(l[a]=a);const b=C&&t(T,{name:"cross",class:[s("close"),P],onClick:c},null);return t("span",{style:i(),class:s([l,u])},[(e=n.default)==null?void 0:e.call(n),b])};return()=>t(k,{name:o.closeable?"van-fade":void 0},{default:()=>[o.show?d():null]})}});const _=h(y);export{_ as T};

+ 1 - 1
dist/assets/index-1a8560e4.js → dist/assets/index-75ca044f.js

@@ -1 +1 @@
-import{a as o}from"./use-scope-id-99f946c2.js";import{c,t as d,B as u,w as m}from"./index-41637c73.js";import{d as f,c as r,F as p,m as v}from"./index-2b8481dd.js";const[g,i]=c("cell-group"),B={title:String,inset:Boolean,border:d};var O=f({name:g,inheritAttrs:!1,props:B,setup(e,{slots:t,attrs:l}){const n=()=>{var a;return r("div",v({class:[i({inset:e.inset}),{[u]:e.border&&!e.inset}]},l,o()),[(a=t.default)==null?void 0:a.call(t)])},s=()=>r("div",{class:i("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?r(p,null,[s(),n()]):n()}});const b=m(O);export{b as C};
+import{a as o}from"./use-scope-id-7611483c.js";import{c,t as d,B as u,w as m}from"./index-e9453d64.js";import{d as f,c as r,F as p,m as v}from"./index-ddf66cb5.js";const[g,i]=c("cell-group"),B={title:String,inset:Boolean,border:d};var O=f({name:g,inheritAttrs:!1,props:B,setup(e,{slots:t,attrs:l}){const n=()=>{var a;return r("div",v({class:[i({inset:e.inset}),{[u]:e.border&&!e.inset}]},l,o()),[(a=t.default)==null?void 0:a.call(t)])},s=()=>r("div",{class:i("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?r(p,null,[s(),n()]):n()}});const b=m(O);export{b as C};

+ 1 - 1
dist/assets/index-a868c8ea.js → dist/assets/index-856231c7.js

@@ -1 +1 @@
-import{c as u,e as d,f,n as c,z as m,d as y,w as S}from"./index-41637c73.js";import{c as a,d as p,a as x}from"./index-2b8481dd.js";const[g,r]=u("loading"),v=Array(12).fill(null).map((e,n)=>a("i",{class:r("line",String(n+1))},null)),z=a("svg",{class:r("circular"),viewBox:"25 25 50 50"},[a("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),I={size:c,type:m("circular"),color:String,vertical:Boolean,textSize:c,textColor:String};var C=p({name:g,props:I,setup(e,{slots:n}){const l=x(()=>d({color:e.color},f(e.size))),i=()=>{const t=e.type==="spinner"?v:z;return a("span",{class:r("spinner",e.type),style:l.value},[n.icon?n.icon():t])},o=()=>{var t;if(n.default)return a("span",{class:r("text"),style:{fontSize:y(e.textSize),color:(t=e.textColor)!=null?t:e.color}},[n.default()])};return()=>{const{type:t,vertical:s}=e;return a("div",{class:r([t,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),o()])}}});const _=S(C);export{_ as L};
+import{c as u,e as d,f,n as c,z as m,d as y,w as S}from"./index-e9453d64.js";import{c as a,d as p,a as x}from"./index-ddf66cb5.js";const[g,r]=u("loading"),v=Array(12).fill(null).map((e,n)=>a("i",{class:r("line",String(n+1))},null)),z=a("svg",{class:r("circular"),viewBox:"25 25 50 50"},[a("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),I={size:c,type:m("circular"),color:String,vertical:Boolean,textSize:c,textColor:String};var C=p({name:g,props:I,setup(e,{slots:n}){const l=x(()=>d({color:e.color},f(e.size))),i=()=>{const t=e.type==="spinner"?v:z;return a("span",{class:r("spinner",e.type),style:l.value},[n.icon?n.icon():t])},o=()=>{var t;if(n.default)return a("span",{class:r("text"),style:{fontSize:y(e.textSize),color:(t=e.textColor)!=null?t:e.color}},[n.default()])};return()=>{const{type:t,vertical:s}=e;return a("div",{class:r([t,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),o()])}}});const _=S(C);export{_ as L};

+ 1 - 1
dist/assets/index-501964a1.js → dist/assets/index-a0171691.js

@@ -1 +1 @@
-import{c as V,u as y,n as T,t as h,p as A,W as C,w as M}from"./index-41637c73.js";import{u as N}from"./use-scope-id-99f946c2.js";import{d as _,c as k}from"./index-2b8481dd.js";const[q,x]=V("form"),I={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:T,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:h,showErrorMessage:h,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var O=_({name:q,props:I,emits:["submit","failed"],setup(l,{emit:a,slots:c}){const{children:i,linkChildren:v}=y(C),s=e=>e?i.filter(t=>e.includes(t.name)):i,p=e=>new Promise((t,n)=>{const o=[];s(e).reduce((w,F)=>w.then(()=>{if(!o.length)return F.validate().then(g=>{g&&o.push(g)})}),Promise.resolve()).then(()=>{o.length?n(o):t()})}),b=e=>new Promise((t,n)=>{const o=s(e);Promise.all(o.map(r=>r.validate())).then(r=>{r=r.filter(Boolean),r.length?n(r):t()})}),P=e=>{const t=i.find(n=>n.name===e);return t?new Promise((n,o)=>{t.validate().then(r=>{r?o(r):n()})}):Promise.reject()},u=e=>typeof e=="string"?P(e):l.validateFirst?p(e):b(e),S=e=>{typeof e=="string"&&(e=[e]),s(e).forEach(n=>{n.resetValidation()})},B=()=>i.reduce((e,t)=>(e[t.name]=t.getValidationStatus(),e),{}),d=(e,t)=>{i.some(n=>n.name===e?(n.$el.scrollIntoView(t),!0):!1)},f=()=>i.reduce((e,t)=>(t.name!==void 0&&(e[t.name]=t.formValue.value),e),{}),m=()=>{const e=f();u().then(()=>a("submit",e)).catch(t=>{a("failed",{values:e,errors:t});const{scrollToError:n,scrollToErrorPosition:o}=l;n&&t[0].name&&d(t[0].name,o?{block:o}:void 0)})},E=e=>{A(e),m()};return v({props:l}),N({submit:m,validate:u,getValues:f,scrollToField:d,resetValidation:S,getValidationStatus:B}),()=>{var e;return k("form",{class:x(),onSubmit:E},[(e=c.default)==null?void 0:e.call(c)])}}});const K=M(O);export{K as F};
+import{c as V,u as y,n as T,t as h,p as A,W as C,w as M}from"./index-e9453d64.js";import{u as N}from"./use-scope-id-7611483c.js";import{d as _,c as k}from"./index-ddf66cb5.js";const[q,x]=V("form"),I={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:T,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:h,showErrorMessage:h,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};var O=_({name:q,props:I,emits:["submit","failed"],setup(l,{emit:a,slots:c}){const{children:i,linkChildren:v}=y(C),s=e=>e?i.filter(t=>e.includes(t.name)):i,p=e=>new Promise((t,n)=>{const o=[];s(e).reduce((w,F)=>w.then(()=>{if(!o.length)return F.validate().then(g=>{g&&o.push(g)})}),Promise.resolve()).then(()=>{o.length?n(o):t()})}),b=e=>new Promise((t,n)=>{const o=s(e);Promise.all(o.map(r=>r.validate())).then(r=>{r=r.filter(Boolean),r.length?n(r):t()})}),P=e=>{const t=i.find(n=>n.name===e);return t?new Promise((n,o)=>{t.validate().then(r=>{r?o(r):n()})}):Promise.reject()},u=e=>typeof e=="string"?P(e):l.validateFirst?p(e):b(e),S=e=>{typeof e=="string"&&(e=[e]),s(e).forEach(n=>{n.resetValidation()})},B=()=>i.reduce((e,t)=>(e[t.name]=t.getValidationStatus(),e),{}),d=(e,t)=>{i.some(n=>n.name===e?(n.$el.scrollIntoView(t),!0):!1)},f=()=>i.reduce((e,t)=>(t.name!==void 0&&(e[t.name]=t.formValue.value),e),{}),m=()=>{const e=f();u().then(()=>a("submit",e)).catch(t=>{a("failed",{values:e,errors:t});const{scrollToError:n,scrollToErrorPosition:o}=l;n&&t[0].name&&d(t[0].name,o?{block:o}:void 0)})},E=e=>{A(e),m()};return v({props:l}),N({submit:m,validate:u,getValues:f,scrollToField:d,resetValidation:S,getValidationStatus:B}),()=>{var e;return k("form",{class:x(),onSubmit:E},[(e=c.default)==null?void 0:e.call(c)])}}});const K=M(O);export{K as F};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-a7cc295e.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-c1d3cef3.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-d713c94b.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-ddf66cb5.js


+ 1 - 1
dist/assets/index-ab2275a8.js → dist/assets/index-e270b3af.js

@@ -1 +1 @@
-import{r as y,u as L}from"./use-route-7e194a3c.js";import{c as D,e as I,z as B,n as o,t as V,G as u,k as s,I as b,w as _}from"./index-41637c73.js";import{d as q,c as a}from"./index-2b8481dd.js";const[z,r]=D("cell"),A={tag:B("div"),icon:String,size:String,title:o,value:o,label:o,center:Boolean,isLink:Boolean,border:V,iconPrefix:String,valueClass:u,labelClass:u,titleClass:u,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},N=I({},A,y);var R=q({name:z,props:N,setup(e,{slots:l}){const v=L(),m=()=>{if(l.label||s(e.label))return a("div",{class:[r("label"),e.labelClass]},[l.label?l.label():e.label])},g=()=>{var n;if(l.title||s(e.title)){const t=(n=l.title)==null?void 0:n.call(l);return Array.isArray(t)&&t.length===0?void 0:a("div",{class:[r("title"),e.titleClass],style:e.titleStyle},[t||a("span",null,[e.title]),m()])}},h=()=>{const n=l.value||l.default;if(n||s(e.value))return a("div",{class:[r("value"),e.valueClass]},[n?n():a("span",null,[e.value])])},w=()=>{if(l.icon)return l.icon();if(e.icon)return a(b,{name:e.icon,class:r("left-icon"),classPrefix:e.iconPrefix},null)},k=()=>{if(l["right-icon"])return l["right-icon"]();if(e.isLink){const n=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return a(b,{name:n,class:r("right-icon")},null)}};return()=>{var n;const{tag:t,size:i,center:C,border:P,isLink:S,required:x}=e,c=(n=e.clickable)!=null?n:S,d={center:C,required:!!x,clickable:c,borderless:!P};return i&&(d[i]=!!i),a(t,{class:r(d),role:c?"button":void 0,tabindex:c?0:void 0,onClick:v},{default:()=>{var f;return[w(),g(),h(),k(),(f=l.extra)==null?void 0:f.call(l)]}})}}});const j=_(R);export{j as C,A as c};
+import{r as y,u as L}from"./use-route-0a2b7081.js";import{c as D,e as I,z as B,n as o,t as V,G as u,k as s,I as b,w as _}from"./index-e9453d64.js";import{d as q,c as a}from"./index-ddf66cb5.js";const[z,r]=D("cell"),A={tag:B("div"),icon:String,size:String,title:o,value:o,label:o,center:Boolean,isLink:Boolean,border:V,iconPrefix:String,valueClass:u,labelClass:u,titleClass:u,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},N=I({},A,y);var R=q({name:z,props:N,setup(e,{slots:l}){const v=L(),m=()=>{if(l.label||s(e.label))return a("div",{class:[r("label"),e.labelClass]},[l.label?l.label():e.label])},g=()=>{var n;if(l.title||s(e.title)){const t=(n=l.title)==null?void 0:n.call(l);return Array.isArray(t)&&t.length===0?void 0:a("div",{class:[r("title"),e.titleClass],style:e.titleStyle},[t||a("span",null,[e.title]),m()])}},h=()=>{const n=l.value||l.default;if(n||s(e.value))return a("div",{class:[r("value"),e.valueClass]},[n?n():a("span",null,[e.value])])},w=()=>{if(l.icon)return l.icon();if(e.icon)return a(b,{name:e.icon,class:r("left-icon"),classPrefix:e.iconPrefix},null)},k=()=>{if(l["right-icon"])return l["right-icon"]();if(e.isLink){const n=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return a(b,{name:n,class:r("right-icon")},null)}};return()=>{var n;const{tag:t,size:i,center:C,border:P,isLink:S,required:x}=e,c=(n=e.clickable)!=null?n:S,d={center:C,required:!!x,clickable:c,borderless:!P};return i&&(d[i]=!!i),a(t,{class:r(d),role:c?"button":void 0,tabindex:c?0:void 0,onClick:v},{default:()=>{var f;return[w(),g(),h(),k(),(f=l.extra)==null?void 0:f.call(l)]}})}}});const j=_(R);export{j as C,A as c};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-e9453d64.js


+ 1 - 1
dist/assets/index-1dc11878.js → dist/assets/index-f37a4c38.js

@@ -1 +1 @@
-import{r as v,u as I}from"./use-route-7e194a3c.js";import{c as R,e as p,z as l,n as C,a2 as w,I as D,p as L,w as N}from"./index-41637c73.js";import{L as q}from"./index-a868c8ea.js";import{d as O,c as o}from"./index-2b8481dd.js";const[U,a]=R("button"),_=p({},v,{tag:l("button"),text:String,icon:String,type:l("default"),size:l("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:l("button"),loadingSize:C,loadingText:String,loadingType:String,iconPosition:l("left")});var E=O({name:U,props:_,emits:["click"],setup(e,{emit:g,slots:t}){const f=I(),m=()=>t.loading?t.loading():o(q,{size:e.loadingSize,type:e.loadingType,class:a("loading")},null),c=()=>{if(e.loading)return m();if(t.icon)return o("div",{class:a("icon")},[t.icon()]);if(e.icon)return o(D,{name:e.icon,class:a("icon"),classPrefix:e.iconPrefix},null)},b=()=>{let n;if(e.loading?n=e.loadingText:n=t.default?t.default():e.text,n)return o("span",{class:a("text")},[n])},x=()=>{const{color:n,plain:r}=e;if(n){const i={color:r?n:"white"};return r||(i.background=n),n.includes("gradient")?i.border=0:i.borderColor=n,i}},y=n=>{e.loading?L(n):e.disabled||(g("click",n),f())};return()=>{const{tag:n,type:r,size:i,block:S,round:B,plain:P,square:k,loading:T,disabled:s,hairline:d,nativeType:z,iconPosition:u}=e,h=[a([r,i,{plain:P,block:S,round:B,square:k,loading:T,disabled:s,hairline:d}]),{[w]:d}];return o(n,{type:z,class:h,style:x(),disabled:s,onClick:y},{default:()=>[o("div",{class:a("content")},[u==="left"&&c(),b(),u==="right"&&c()])]})}}});const G=N(E);export{G as B};
+import{r as v,u as I}from"./use-route-0a2b7081.js";import{c as R,e as p,z as l,n as C,a2 as w,I as D,p as L,w as N}from"./index-e9453d64.js";import{L as q}from"./index-856231c7.js";import{d as O,c as o}from"./index-ddf66cb5.js";const[U,a]=R("button"),_=p({},v,{tag:l("button"),text:String,icon:String,type:l("default"),size:l("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:l("button"),loadingSize:C,loadingText:String,loadingType:String,iconPosition:l("left")});var E=O({name:U,props:_,emits:["click"],setup(e,{emit:g,slots:t}){const f=I(),m=()=>t.loading?t.loading():o(q,{size:e.loadingSize,type:e.loadingType,class:a("loading")},null),c=()=>{if(e.loading)return m();if(t.icon)return o("div",{class:a("icon")},[t.icon()]);if(e.icon)return o(D,{name:e.icon,class:a("icon"),classPrefix:e.iconPrefix},null)},b=()=>{let n;if(e.loading?n=e.loadingText:n=t.default?t.default():e.text,n)return o("span",{class:a("text")},[n])},x=()=>{const{color:n,plain:r}=e;if(n){const i={color:r?n:"white"};return r||(i.background=n),n.includes("gradient")?i.border=0:i.borderColor=n,i}},y=n=>{e.loading?L(n):e.disabled||(g("click",n),f())};return()=>{const{tag:n,type:r,size:i,block:S,round:B,plain:P,square:k,loading:T,disabled:s,hairline:d,nativeType:z,iconPosition:u}=e,h=[a([r,i,{plain:P,block:S,round:B,square:k,loading:T,disabled:s,hairline:d}]),{[w]:d}];return o(n,{type:z,class:h,style:x(),disabled:s,onClick:y},{default:()=>[o("div",{class:a("content")},[u==="left"&&c(),b(),u==="right"&&c()])]})}}});const G=N(E);export{G as B};

+ 1 - 1
dist/assets/index-49e1eb45.js → dist/assets/index-f5e64579.js

@@ -1 +1 @@
-import{a as l}from"./axios-1779699b.js";import{A as u,Q as c}from"./index-2b8481dd.js";import{a as g,s as m}from"./function-call-bc15f2fc.js";import{w as p}from"./index-41637c73.js";p(g);const a=u(),f=l.create({baseURL:"/forward-service",timeout:1e4}),C=function(i,n,s){const{url:o,data:e}=i;f.post(o,e,{headers:{token:a.token}}).then(t=>{const r=t.data;r.code==0?n&&n(r):r.code==3?(a.isLogin=!1,m({message:r.msg,onClose:()=>{c()}})):s&&s(r.msg)},t=>{s&&s(t.message)}).catch(t=>{console.log(t)})},I=function(i){const{url:n,data:s}=i;return f.post(n,s,{headers:{token:a.token}}).then(o=>{const e=o.data;if(e.code==0)return Promise.resolve(e);if(e.code==3)console.log(e),a.isLogin=!1,m({message:e.msg,onClose:()=>{c()}});else return Promise.reject(e.msg)},o=>Promise.reject(o.message))};export{C as a,I as p};
+import{a as l}from"./axios-1779699b.js";import{A as u,Q as c}from"./index-ddf66cb5.js";import{a as g,s as m}from"./function-call-0875a39e.js";import{w as p}from"./index-e9453d64.js";p(g);const a=u(),f=l.create({baseURL:"/forward-service",timeout:1e4}),C=function(i,n,s){const{url:o,data:e}=i;f.post(o,e,{headers:{token:a.token}}).then(t=>{const r=t.data;r.code==0?n&&n(r):r.code==3?(a.isLogin=!1,m({message:r.msg,onClose:()=>{c()}})):s&&s(r.msg)},t=>{s&&s(t.message)}).catch(t=>{console.log(t)})},I=function(i){const{url:n,data:s}=i;return f.post(n,s,{headers:{token:a.token}}).then(o=>{const e=o.data;if(e.code==0)return Promise.resolve(e);if(e.code==3)console.log(e),a.isLogin=!1,m({message:e.msg,onClose:()=>{c()}});else return Promise.reject(e.msg)},o=>Promise.reject(o.message))};export{C as a,I as p};

+ 1 - 1
dist/assets/mount-component-f1ab53d1.js → dist/assets/mount-component-8daea98e.js

@@ -1 +1 @@
-import{W as r,n as u}from"./index-2b8481dd.js";import{e as a}from"./index-41637c73.js";import{u as m}from"./use-scope-id-99f946c2.js";function d(){const e=u({show:!1}),t=n=>{e.show=n},o=n=>{a(e,n,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return m({open:o,close:s,toggle:t}),{open:o,close:s,state:e,toggle:t}}function f(e){const t=r(e),o=document.createElement("div");return document.body.appendChild(o),{instance:t.mount(o),unmount(){t.unmount(),document.body.removeChild(o)}}}export{f as m,d as u};
+import{W as r,n as u}from"./index-ddf66cb5.js";import{e as a}from"./index-e9453d64.js";import{u as m}from"./use-scope-id-7611483c.js";function d(){const e=u({show:!1}),t=n=>{e.show=n},o=n=>{a(e,n,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return m({open:o,close:s,toggle:t}),{open:o,close:s,state:e,toggle:t}}function f(e){const t=r(e),o=document.createElement("div");return document.body.appendChild(o),{instance:t.mount(o),unmount(){t.unmount(),document.body.removeChild(o)}}}export{f as m,d as u};

+ 1 - 1
dist/assets/on-popup-reopen-22e05677.js → dist/assets/on-popup-reopen-8ab517b6.js

@@ -1 +1 @@
-import{Z as a,Q as n}from"./index-41637c73.js";import{X as e,w as r}from"./index-2b8481dd.js";function c(s,{args:t=[],done:o,canceled:i,error:p}){if(s){const f=s.apply(null,t);a(f)?f.then(l=>{l?o():i&&i()}).catch(p||n):f?o():i&&i()}else o()}const u=Symbol();function h(s){const t=e(u,null);t&&r(t,o=>{o&&s()})}export{u as P,c,h as o};
+import{Z as a,Q as n}from"./index-e9453d64.js";import{X as e,w as r}from"./index-ddf66cb5.js";function c(s,{args:t=[],done:o,canceled:i,error:p}){if(s){const f=s.apply(null,t);a(f)?f.then(l=>{l?o():i&&i()}).catch(p||n):f?o():i&&i()}else o()}const u=Symbol();function h(s){const t=e(u,null);t&&r(t,o=>{o&&s()})}export{u as P,c,h as o};

+ 1 - 1
dist/assets/request-69ef6ece.js → dist/assets/request-cc2f9a2f.js

@@ -1 +1 @@
-import{a as s}from"./axios-1779699b.js";import{H as n}from"./index-2b8481dd.js";const c=n("localStore",{state:()=>({username:"",password:"",rememberPassword:!0,token:""}),persist:{enabled:!0,encryptionKey:"nfgj",storage:localStorage}}),a="https://www.huifutiancai.com/huishou-service",r=c(),t=s.create({baseURL:a,timeout:5e3});t.interceptors.request.use(function(e){return r.token&&(e.headers.accessToken=r.token),e},function(e){return Promise.reject(e)});t.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const p=function(e,o){return t.post(e,o)};export{p,c as u};
+import{a as s}from"./axios-1779699b.js";import{H as n}from"./index-ddf66cb5.js";const c=n("localStore",{state:()=>({username:"",password:"",rememberPassword:!0,token:""}),persist:{enabled:!0,encryptionKey:"nfgj",storage:localStorage}}),a="https://www.huifutiancai.com/huishou-service",r=c(),t=s.create({baseURL:a,timeout:5e3});t.interceptors.request.use(function(e){return r.token&&(e.headers.accessToken=r.token),e},function(e){return Promise.reject(e)});t.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const p=function(e,o){return t.post(e,o)};export{p,c as u};

+ 1 - 1
dist/assets/use-placeholder-f715f719.js → dist/assets/use-placeholder-1196d982.js

@@ -1 +1 @@
-import{O as r,F as h,E as n}from"./index-41637c73.js";import{o as u}from"./on-popup-reopen-22e05677.js";import{r as c,o as l,z as a,w as d,c as p}from"./index-2b8481dd.js";const f=(o,s)=>{const t=c(),e=()=>{t.value=n(o).height};return l(()=>{if(a(e),s)for(let i=1;i<=3;i++)setTimeout(e,100*i)}),u(()=>a(e)),d([r,h],e),t};function v(o,s){const t=f(o,!0);return e=>p("div",{class:s("placeholder"),style:{height:t.value?`${t.value}px`:void 0}},[e()])}export{v as u};
+import{O as r,F as h,E as n}from"./index-e9453d64.js";import{o as u}from"./on-popup-reopen-8ab517b6.js";import{r as c,o as l,z as a,w as d,c as p}from"./index-ddf66cb5.js";const f=(o,s)=>{const t=c(),e=()=>{t.value=n(o).height};return l(()=>{if(a(e),s)for(let i=1;i<=3;i++)setTimeout(e,100*i)}),u(()=>a(e)),d([r,h],e),t};function v(o,s){const t=f(o,!0);return e=>p("div",{class:s("placeholder"),style:{height:t.value?`${t.value}px`:void 0}},[e()])}export{v as u};

+ 1 - 1
dist/assets/use-route-7e194a3c.js → dist/assets/use-route-0a2b7081.js

@@ -1 +1 @@
-import{g as n}from"./index-2b8481dd.js";const a={to:[String,Object],url:String,replace:Boolean};function c({to:e,url:o,replace:t,$router:r}){e&&r?r[t?"replace":"push"](e):o&&(t?location.replace(o):location.href=o)}function i(){const e=n().proxy;return()=>c(e)}export{a as r,i as u};
+import{g as n}from"./index-ddf66cb5.js";const a={to:[String,Object],url:String,replace:Boolean};function c({to:e,url:o,replace:t,$router:r}){e&&r?r[t?"replace":"push"](e):o&&(t?location.replace(o):location.href=o)}function i(){const e=n().proxy;return()=>c(e)}export{a as r,i as u};

+ 1 - 0
dist/assets/use-scope-id-7611483c.js

@@ -0,0 +1 @@
+import{e as s}from"./index-e9453d64.js";import{g as o}from"./index-ddf66cb5.js";function a(n){const e=o();e&&s(e.proxy,n)}const c=()=>{var n;const{scopeId:e}=((n=o())==null?void 0:n.vnode)||{};return e?{[e]:""}:null};export{c as a,a as u};

+ 0 - 1
dist/assets/use-scope-id-99f946c2.js

@@ -1 +0,0 @@
-import{e as s}from"./index-41637c73.js";import{g as o}from"./index-2b8481dd.js";function a(n){const e=o();e&&s(e.proxy,n)}const c=()=>{var n;const{scopeId:e}=((n=o())==null?void 0:n.vnode)||{};return e?{[e]:""}:null};export{c as a,a as u};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/util-f84da12a.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/vue-qrcode-reader-1a1b35e0.js


+ 3 - 3
dist/index.html

@@ -2,13 +2,13 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8" />
-    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
+    <link rel="icon" type="image/svg+xml" href="/wap/vite.svg" />
     <link type="text/css" rel="stylesheet" href="//at.alicdn.com/t/c/font_3378860_jxulrbfimdf.css" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
     <title>驼人物联网平台</title>
     <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=r6wmhUcG2BBUmqP4OjRlxLOMbQ3F1Ptn"></script>
-    <script type="module" crossorigin src="/assets/index-2b8481dd.js"></script>
-    <link rel="stylesheet" href="/assets/index-737d02e6.css">
+    <script type="module" crossorigin src="/wap/assets/index-ddf66cb5.js"></script>
+    <link rel="stylesheet" href="/wap/assets/index-737d02e6.css">
   </head>
   <body>
     <div id="app"></div>

+ 27 - 27
src/router/index.ts

@@ -3,11 +3,11 @@ import { useStoreOfUserInfo } from '@/store/userInfo'
 
 const routes: Array<RouteRecordRaw> = [
   {
-    path: '/wap',
-    redirect: '/wap/home'
+    path: '/',
+    redirect: '/home'
   },
   {
-    path: '/wap/home1',
+    path: '/home1',
     component: ()=> import('@/pages/Index.vue'),
     meta: {
       keepAlive: true,
@@ -21,21 +21,21 @@ const routes: Array<RouteRecordRaw> = [
       //   }
       // },
       {
-        path: '/wap/home',
+        path: '/home',
         component: ()=> import('@/pages/device/list/Index.vue'),
         meta: {
           keepAlive: true,
         }
       },
       {
-        path: '/wap/device',
+        path: '/device',
         component: ()=> import('@/pages/device/list/Index.vue'),
         meta: {
           keepAlive: true,
         }
       },
       {
-        path: '/wap/mine',
+        path: '/mine',
         component: ()=> import('@/pages/mine/Index.vue'),
         meta: {
           keepAlive: true,
@@ -44,67 +44,67 @@ const routes: Array<RouteRecordRaw> = [
     ]
   },
   {
-    path: '/wap/sales/add',
+    path: '/sales/add',
     component: ()=> import('@/pages/sales/add/Index.vue')
   },
   {
-    path: '/wap/sales/list',
+    path: '/sales/list',
     component: ()=> import('@/pages/sales/list/Index.vue')
   },
   {
-    path: '/wap/recycle/add',
+    path: '/recycle/add',
     component: ()=> import('@/pages/recycle/add/Index.vue')
   },
   {
-    path: '/wap/recycle/list',
+    path: '/recycle/list',
     component: ()=> import('@/pages/recycle/list/Index.vue')
   },
   {
-    path: '/wap/login',
+    path: '/login',
     component: () => import('@/pages/login/Index.vue')
   },
   {
-    path: '/wap/register',
+    path: '/register',
     component: () => import('@/pages/register/Index.vue')
   },
   {
-    path: '/wap/findpassword',
+    path: '/findpassword',
     component: () => import('@/pages/findpassword/Index.vue')
   },
   {
-    path: '/wap/changepassword',
+    path: '/changepassword',
     component: () => import('@/pages/mine/Changepassword.vue')
   },
   {
-    path: '/wap/search',
+    path: '/search',
     component: () => import('@/pages/search/Index.vue'),
     meta: {
       keepAlive: true,
     }
   },
   {
-    path: '/wap/article',
+    path: '/article',
     component: () => import('@/pages/article/Index.vue'),
     meta: {
       keepAlive: true,
     }
   },
   {
-    path: '/wap/article/detail/:articleId',
+    path: '/article/detail/:articleId',
     component: () => import('@/pages/article/Detail.vue'),
     meta: {
       keepAlive: true,
     }
   },
   {
-    path: '/wap/device/detail/:deviceId',
+    path: '/device/detail/:deviceId',
     component: () => import('@/pages/device/detail/Index.vue'),
     meta: {
       keepAlive: true,
     }
   },
   {
-    path: '/wap/device/ascend/:deviceId',
+    path: '/device/ascend/:deviceId',
     component: () => import('@/pages/device/ascend/Index.vue'),
     meta: {
       title: '驼人物联网平台终端设备追溯',
@@ -112,25 +112,25 @@ const routes: Array<RouteRecordRaw> = [
     }
   },
   {
-    path: '/wap/device/location/:deviceId',
+    path: '/device/location/:deviceId',
     component: () => import('@/pages/device/Location.vue'),
     meta: {
       keepAlive: true,
     }
   },
   {
-    path: '/wap/device/log/:deviceId',
+    path: '/device/log/:deviceId',
     component: () => import('@/pages/device/Log.vue'),
     meta: {
       keepAlive: true,
     }
   },
   {
-    path: '/wap/demo',
+    path: '/demo',
     component: () => import('@/pages/demo/Index3.vue')
   },
   {
-    path: '/wap/mine/wifi',
+    path: '/mine/wifi',
     component: () => import('@/pages/mine/wifi/Index.vue')
   }
 ]
@@ -147,9 +147,9 @@ export default router
 
 // 导航守卫
 const title = "驼人物联网平台";
-const loginPath = '/wap/login';
-const ascendPath = '/wap/device/ascend';
-const accessList = [loginPath, '/wap/register', '/wap/findpassword', '/wap/demo', 'article'];
+const loginPath = '/login';
+const ascendPath = '/device/ascend';
+const accessList = [loginPath, '/register', '/findpassword', '/demo', 'article'];
 router.beforeEach((to, from) => {
   const userInfo = useStoreOfUserInfo();
   console.log('导航守卫', to, from);
@@ -177,7 +177,7 @@ router.beforeEach((to, from) => {
     return;
   }
   // 判断文章详情页
-  if(to.path.includes("/wap/article/detail")){
+  if(to.path.includes("/article/detail")){
     return;
   }
   return {

+ 1 - 13
vite.config.ts

@@ -5,9 +5,8 @@ import { VantResolver } from 'unplugin-vue-components/resolvers'
 import path from 'path'
 // import basicSSL from '@vitejs/plugin-basic-ssl'
 
-// https://vitejs.dev/config/
 export default defineConfig({
-  base: '/',
+  base: '/wap/',
   plugins: [
     // basicSSL(),
     vue(),
@@ -15,17 +14,6 @@ export default defineConfig({
       resolvers: [VantResolver()]
     })
   ],
-  // build: {
-  //   minify: false,
-  //   rollupOptions: {
-  //     output: {
-  //       // 在这里修改静态资源路径
-  //       chunkFileNames: "wap/assets/[name]-[hash].js",
-  //       entryFileNames: "wap/assets/[name]-[hash].js",
-  //       assetFileNames: "wap/assets/[name]-[hash].[ext]",
-  //     }
-  //   }
-  // },
   resolve: {
     alias: {
       "@": path.resolve(__dirname, './src')

部分文件因为文件数量过多而无法显示