You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.0 KiB

"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[787],{26787:(t,e,i)=>{i.r(e),i.d(e,{default:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"user-container container"},[e("div",{staticClass:"user-top-bg"},[e("h3",{staticClass:"title"},[t._v("用户中心 - "),e("small",[t._v(t._s(t.metaTitle))])])]),e("div",{staticClass:"conent"},[e("div",{staticClass:"user-left-nav"},[e("ul",t._l(t.userRoutes,(function(i,s){return e("div",{key:s},[i.children?[e("li",[e("div",{staticClass:"item",on:{click:function(e){return t.handleShowChild(i)}}},[e("div",[t._v(t._s(i.meta.title))]),e("i",{class:i.isOpen?"el-icon-arrow-down up":"el-icon-arrow-down"})]),i.isOpen?e("div",{staticClass:"sub-nav"},t._l(i.children,(function(s){return e("div",{key:s.index},[s.hidden?t._e():e("div",{staticClass:"sub-item"},[e("router-link",{attrs:{to:"/user/"+i.path+"/"+s.path}},[t._v(t._s(s.meta.title))])],1)])})),0):t._e()])]:[e("li",[e("router-link",{attrs:{to:"/user/"+i.path}},[e("span",{on:{click:t.hideChild}},[t._v(t._s(i.meta.title)+" ")])])],1)]],2)})),0)]),e("div",{staticClass:"user-right-content"},[e("div",{staticClass:"user-content-title"},[t._v(t._s(t.metaTitle))]),e("div",{staticStyle:{padding:"0 20px 10px"}},[e("router-view")],1)])])])},n=[],a=(i(89554),i(41539),i(54747),i(68309),i(34018));const r={name:"UserIndex",data:function(){return{userRoutes:a._}},computed:{userRoute:function(){},showChild:function(){return this.$store.state.settings.isChildShow},metaTitle:function(){return this.$route.meta.title}},created:function(){var t=this;localStorage.setItem("topBg",!1),this.userRoutes.forEach((function(e){e.children&&e.children.forEach((function(i){i.name===t.$route.name&&(e.isOpen=!0)}))}))},methods:{handleShowChild:function(t){this.userRoutes.forEach((function(e){e!==t&&(e.isOpen=!1)})),t.isOpen=!t.isOpen},hideChild:function(){this.userRoutes.forEach((function(t){t.isOpen=!1}))}}},o=r;var l=i(43736),u=(0,l.Z)(o,s,n,!1,null,"6ea74eac",null);const c=u.exports}}]);