"use strict";(self["webpackChunkmi_wifi_agent"]=self["webpackChunkmi_wifi_agent"]||[]).push([[5980],{9073:function(e,t,l){l.r(t),l.d(t,{default:function(){return f}});var a=l(641);function o(e,t,l,o,i,r){const n=(0,a.g2)("el-button"),s=(0,a.g2)("el-alert"),u=(0,a.g2)("el-card"),p=(0,a.g2)("el-input"),c=(0,a.g2)("el-form-item"),m=(0,a.g2)("el-form"),f=(0,a.g2)("el-main");return(0,a.uX)(),(0,a.Wv)(f,null,{default:(0,a.k6)((()=>[(0,a.bF)(u,{shadow:"never",header:"打开"},{default:(0,a.k6)((()=>[(0,a.bF)(n,{type:"primary",plain:"",onClick:r.open1},{default:(0,a.k6)((()=>[(0,a.eW)("打开个人信息")])),_:1},8,["onClick"]),(0,a.bF)(n,{type:"primary",plain:"",onClick:r.open2},{default:(0,a.k6)((()=>[(0,a.eW)("打开后执行")])),_:1},8,["onClick"]),(0,a.bF)(s,{title:"打开后执行原理: 路由push时,在当前路由对象中插入一个特殊标识, 在目标视图中beforeRouteEnter获取判断是否需要执行特殊方法",style:{"margin-top":"20px"}})])),_:1}),(0,a.bF)(u,{shadow:"never",header:"刷新",style:{"margin-top":"15px"}},{default:(0,a.k6)((()=>[(0,a.bF)(n,{type:"primary",plain:"",onClick:r.refresh1},{default:(0,a.k6)((()=>[(0,a.eW)("刷新当前")])),_:1},8,["onClick"])])),_:1}),(0,a.bF)(u,{shadow:"never",header:"关闭",style:{"margin-top":"15px"}},{default:(0,a.k6)((()=>[(0,a.bF)(n,{type:"primary",plain:"",onClick:r.close1},{default:(0,a.k6)((()=>[(0,a.eW)("关闭当前")])),_:1},8,["onClick"]),(0,a.bF)(n,{type:"primary",plain:"",onClick:r.close2},{default:(0,a.k6)((()=>[(0,a.eW)("关闭其他")])),_:1},8,["onClick"]),(0,a.bF)(n,{type:"primary",plain:"",onClick:r.close3},{default:(0,a.k6)((()=>[(0,a.eW)("关闭后执行")])),_:1},8,["onClick"])])),_:1}),(0,a.bF)(u,{shadow:"never",header:"设置",style:{"margin-top":"15px"}},{default:(0,a.k6)((()=>[(0,a.bF)(m,{inline:!0},{default:(0,a.k6)((()=>[(0,a.bF)(c,null,{default:(0,a.k6)((()=>[(0,a.bF)(p,{modelValue:i.input,"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])])),_:1}),(0,a.bF)(c,null,{default:(0,a.k6)((()=>[(0,a.bF)(n,{type:"primary",plain:"",onClick:r.set1},{default:(0,a.k6)((()=>[(0,a.eW)("设置标题")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1}),(0,a.bF)(u,{shadow:"never",header:"整页路由",style:{"margin-top":"15px"}},{default:(0,a.k6)((()=>[(0,a.bF)(n,{type:"primary",plain:"",onClick:r.fullpage},{default:(0,a.k6)((()=>[(0,a.eW)("fullpage")])),_:1},8,["onClick"]),(0,a.bF)(s,{title:"变更路由的层级关系,向上推至顶级达到在layout视图中显示. 只需要在路由中设置 meta.fullpage 即可",style:{"margin-top":"20px"}})])),_:1})])),_:1})}l(8743);var i=l(5947),r=l.n(i),n=l(1286),s=l(5129),u={refresh(){r().start();const e=n.A.currentRoute.value;s.A.commit("removeKeepLive",e.name),s.A.commit("setRouteShow",!1),(0,a.dY)((()=>{s.A.commit("pushKeepLive",e.name),s.A.commit("setRouteShow",!0),r().done()}))},close(e){const t=e||n.A.currentRoute.value;s.A.commit("removeViewTags",t),s.A.commit("removeIframeList",t),s.A.commit("removeKeepLive",t.name);const l=s.A.state.viewTags.viewTags,a=l.slice(-1)[0];a?n.A.push(a):n.A.push("/")},closeNext(e){const t=n.A.currentRoute.value;if(s.A.commit("removeViewTags",t),s.A.commit("removeIframeList",t),s.A.commit("removeKeepLive",t.name),e){const t=s.A.state.viewTags.viewTags;e(t)}},closeOther(){const e=n.A.currentRoute.value,t=[...s.A.state.viewTags.viewTags];t.forEach((t=>{if(t.meta&&t.meta.affix||e.fullPath==t.fullPath)return!0;this.close(t)}))},setTitle(e){s.A.commit("updateViewTagsTitle",e)}},p={name:"viewTags",data(){return{input:"newTabName"}},mounted(){},methods:{open1(){this.$router.push("/usercenter")},open2(){this.$router.push("/usercenter"),this.$route.is=!0},refresh1(){u.refresh()},close1(){u.close()},close2(){u.closeOther()},close3(){u.closeNext((e=>{console.log(e),this.$router.push("/usercenter"),this.$route.is=!0}))},set1(){u.setTitle(this.input)},fullpage(){this.$router.push("/other/fullpage")}}},c=l(6262);const m=(0,c.A)(p,[["render",o]]);var f=m}}]);