app.8dff95dc.js 21.7 KB
Newer Older
1 2
(function(t){function e(e){for(var a,i,s=e[0],l=e[1],c=e[2],p=0,d=[];p<s.length;p++)i=s[p],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&d.push(r[i][0]),r[i]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(t[a]=l[a]);u&&u(e);while(d.length)d.shift()();return o.push.apply(o,c||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],a=!0,s=1;s<n.length;s++){var l=n[s];0!==r[l]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={app:0},o=[];function i(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=e,s=s.slice();for(var c=0;c<s.length;c++)e(s[c]);var u=l;o.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"022e":function(t,e,n){"use strict";n("12df")},"12df":function(t,e,n){},"155e":function(t,e,n){},"16b4":function(t,e,n){},4084:function(t,e,n){},5096:function(t,e,n){"use strict";n("8e01")},"547c":function(t,e,n){"use strict";n("c7d0")},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("4de4");var a=n("2b0e"),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-view")},o=[],i={name:"MyApp"},s=i,l=n("2877"),c=Object(l["a"])(s,r,o,!1,null,"633dd7d9",null),u=c.exports,p=n("8c4f"),d=["/home","/home/users","/home/pic"],m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login-container"},[n("div",{staticClass:"login-box"},[t._m(0),n("div",{staticClass:"form-login p-4"},[n("div",{staticClass:"form-group form-inline"},[n("label",{attrs:{for:"username"}},[t._v("登录名称")]),n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.username,expression:"username",modifiers:{trim:!0}}],staticClass:"form-control ml-2",attrs:{type:"text",id:"username",placeholder:"请输入登录名称",autocomplete:"off"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),n("div",{staticClass:"form-group form-inline"},[n("label",{attrs:{for:"password"}},[t._v("登录密码")]),n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.password,expression:"password",modifiers:{trim:!0}}],staticClass:"form-control ml-2",attrs:{type:"password",id:"password",placeholder:"请输入登录密码"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),n("div",{staticClass:"form-group form-inline d-flex justify-content-end"},[n("button",{staticClass:"btn btn-secondary mr-2",attrs:{type:"button"},on:{click:t.reset}},[t._v("重置")]),n("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.login}},[t._v("登录")])])])])])},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"text-center avatar-box"},[a("img",{staticClass:"img-thumbnail avatar",attrs:{src:n("7678"),alt:"kwan的解忧杂货铺"}})])}],h={name:"MyLogin",data:function(){return{username:"",password:""}},methods:{reset:function(){this.username="",this.password=""},login:function(){"admin"===this.username&&"666688"===this.password?(localStorage.setItem("token","Bearer xxxx"),this.$router.push("/home")):localStorage.removeItem("token")}}},g=h,v=(n("547c"),Object(l["a"])(g,m,f,!1,null,"2d08abd9",null)),b=v.exports,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"home-container"},[n("el-row",[n("el-col",{attrs:{span:24}},[n("MyHeader")],1)],1),n("el-row",[n("el-col",{attrs:{span:3}},[n("MyAside")],1),n("el-col",{attrs:{span:21}},[n("router-view")],1)],1)],1)},y=[],w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout-header-container d-flex justify-content-between align-items-center p-3"},[t._m(0),n("el-row",[n("el-col",{attrs:{inline:!0,span:24}},[n("el-button",{staticClass:"el-button-header",attrs:{type:"success",round:""},on:{click:t.myHome}},[t._v("我的主页")]),n("el-button",{staticClass:"el-button-header",attrs:{type:"primary",round:""},on:{click:t.logout}},[t._v("退出登录")])],1)],1)],1)},k=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"layout-header-left d-flex align-items-center user-select-none"},[a("img",{staticClass:"layout-header-left-img",attrs:{src:n("7678"),alt:""}}),a("h4",{staticClass:"layout-header-left-title ml-3"},[t._v("kwan的解忧杂货铺")])])}],C={name:"MyHeader",methods:{logout:function(){localStorage.removeItem("token"),this.$router.push("/login")},myHome:function(){window.open("http://qinyingjie.top/")}}},x=C,P=(n("9d40"),Object(l["a"])(x,w,k,!1,null,"36ae6cf9",null)),S=P.exports,$=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-menu",{staticClass:"layout-aside-container",attrs:{"default-active":"$route.path","background-color":"#fff","text-color":"#000","active-text-color":"#42b983"}},[n("router-link",{attrs:{to:"/home/chat"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/chat"}},[n("i",{staticClass:"el-icon-chat-line-square"}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v("对话管理")])])],1),n("router-link",{attrs:{to:"/home/pic"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/pic"}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v("图片管理")])])],1),n("router-link",{attrs:{to:"/home/users"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/users"}},[n("i",{staticClass:"el-icon-user"}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v("用户管理")])])],1),n("router-link",{attrs:{to:"/home/goods"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/goods"}},[n("i",{staticClass:"el-icon-goods"}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v("商品管理")])])],1),n("router-link",{attrs:{to:"/home/orders"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/orders"}},[n("i",{staticClass:"el-icon-s-order"}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v("订单管理")])])],1),n("router-link",{attrs:{to:"/home/settings"}},[n("el-menu-item",{staticClass:"left-aside-item",attrs:{index:"/settings"}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v("系统设置")])])],1)],1)},O=[],j={name:"MyAside"},q=j,I=(n("7bce"),Object(l["a"])(q,$,O,!1,null,"3235a6cc",null)),M=I.exports,D={name:"MyHome",components:{MyHeader:S,MyAside:M}},E=D,T=(n("9547"),Object(l["a"])(E,_,y,!1,null,"e41dbfec",null)),R=T.exports,L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h4",{staticClass:"text-center"},[t._v("用户管理")]),n("table",{staticClass:"table table-bordered table-striped table-hover"},[t._m(0),n("tbody",t._l(t.userlist,(function(e){return n("tr",{key:e.id},[n("td",[t._v(t._s(e.id))]),n("td",[t._v(t._s(e.name))]),n("td",[t._v(t._s(e.age))]),n("td",[t._v(t._s(e.position))]),n("td",[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.gotoDetail(e.id)}}},[t._v("详情")])])])})),0)])])},z=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",[t._v("序号")]),n("th",[t._v("姓名")]),n("th",[t._v("年龄")]),n("th",[t._v("头衔")]),n("th",[t._v("操作")])])])}],N={name:"MyUser",data:function(){return{userlist:[{id:1,name:"嬴政",age:18,position:"始皇帝"},{id:2,name:"李斯",age:35,position:"丞相"},{id:3,name:"吕不韦",age:50,position:"商人"},{id:4,name:"赵姬",age:48,position:"王太后"}]}},methods:{gotoDetail:function(t){this.$router.push("/home/userinfo/"+t)}}},U=N,H=Object(l["a"])(U,L,z,!1,null,"02f3073a",null),A=H.exports,B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-container",[n("el-main",[n("el-select",{attrs:{placeholder:"请选择"},on:{change:t.queryPic},model:{value:t.picType,callback:function(e){t.picType=e},expression:"picType"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{border:"",data:t.picList}},[n("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),n("el-table-column",{attrs:{prop:"picName",label:"图片名字",width:"240","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("img",{staticStyle:{cursor:"pointer"},attrs:{src:e.row.picUrl,alt:"图片",height:"100px"},on:{click:function(n){return t.showImageDialog(e.row.picUrl)}}})]}}])}),n("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("dateFormat")(e.row.createTime))+" ")]}}])})],1),n("el-dialog",{attrs:{visible:t.imageDialogVisible,width:"30%"},on:{"update:visible":function(e){t.imageDialogVisible=e}}},[n("img",{staticStyle:{width:"100%"},attrs:{src:t.enlargedImageUrl,alt:"放大图片"}})]),n("el-pagination",{key:t.elementui_page_component_key,staticClass:"pagination",attrs:{background:"","current-page":t.currentPage,"page-size":t.pageSize,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"current-change":t.handleCurrentChange}})],1)],1)],1)},F=[],Q=n("1da1"),V=(n("96cf"),n("cee4")),Y={name:"MyPic",data:function(){return{picList:[],loading:!1,elementui_page_component_key:0,currentPage:1,pageSize:6,total:0,imageDialogVisible:!1,enlargedImageUrl:"",options:[{value:0,label:"宝宝照片"},{value:1,label:"学习照片"},{value:2,label:"风景照片"},{value:3,label:"美女照片"},{value:99,label:"其他照片"}],picType:0}},created:function(){this.queryPic()},methods:{showImageDialog:function(t){this.enlargedImageUrl=t,this.imageDialogVisible=!0},queryPic:function(){var t=this;return Object(Q["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,V["a"].get("http://120.79.36.53:8888/picInfo/page",{params:{page:t.currentPage,pageSize:t.pageSize,picType:t.picType}});case 3:n=e.sent,a=n.data,200===a.code&&(t.picList=a.result.records,t.total=a.result.total),t.loading=!1;case 7:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.currentPage=t,this.queryPic()}}},G=Y,J=(n("5096"),Object(l["a"])(G,B,F,!1,null,"2a73445c",null)),K=J.exports,W=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h4",{staticClass:"text-center"},[t._v("商品管理")])},X=[],Z={name:"MyGoods"},tt=Z,et=Object(l["a"])(tt,W,X,!1,null,"716085f0",null),nt=et.exports,at=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h4",{staticClass:"text-center"},[t._v("订单管理")])},rt=[],ot={name:"MyOrders"},it=ot,st=Object(l["a"])(it,at,rt,!1,null,"3275af60",null),lt=st.exports,ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-container",[n("el-main",[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.formInline}},[n("el-form-item",[n("el-input",{attrs:{clearable:"",placeholder:"请输入问题"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.initCartList.apply(null,arguments)}},model:{value:t.formInline.question,callback:function(e){t.$set(t.formInline,"question",e)},expression:"formInline.question"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.initCartList}},[t._v("查询")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.preventDefault(),t.addChat.apply(null,arguments)}}},[t._v("新增")])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{border:"",data:t.userlist}},[n("el-table-column",{attrs:{prop:"id",label:"序号",width:"100",sortable:""}}),n("el-table-column",{attrs:{prop:"question",label:"问题",width:"240","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{prop:"response",label:"答案","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("dateFormat")(e.row.createTime))+" ")]}}])}),n("el-table-column",{attrs:{prop:"详情",label:"详情",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"success"},on:{click:function(n){return n.preventDefault(),t.gotoDetail(e.row.id)}}},[t._v("详情")]),n("el-button",{attrs:{type:"danger"},on:{click:function(n){return t.onDelete(e.row.id)}}},[t._v("删除")])]}}])})],1),n("el-pagination",{key:t.elementui_page_component_key,staticClass:"pagination",attrs:{background:"","current-page":t.currentPage,"page-size":t.pageSize,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"current-change":t.handleCurrentChange}})],1),n("el-backtop",{staticClass:"backtop"})],1)],1)},ut=[],pt=(n("a9e3"),{name:"MyChat",data:function(){return{userlist:[],loading:!1,elementui_page_component_key:0,currentPage:Number(localStorage.getItem("lastPage"))||1,pageSize:9,total:0,formInline:{question:""}}},watch:{"formInline.question":function(t){""===t&&(this.currentPage=1,localStorage.setItem("lastPage",this.currentPage),this.initCartList())}},created:function(){var t=this;this.$nextTick((function(){var e=t.$route.query.back,n=t.$route.query.add;"back"===e&&"add"!=n?(t.currentPage=Number(localStorage.getItem("lastPage"))||1,t.formInline.question=localStorage.getItem("lastQuestion")||""):(localStorage.setItem("lastPage",1),localStorage.setItem("lastQuestion",""),t.currentPage=1,t.formInline.question=""),t.initCartList()}))},mounted:function(){this.currentPage=Number(localStorage.getItem("lastPage"))||1,this.formInline.question=localStorage.getItem("lastQuestion"),this.elementui_page_component_key++},methods:{onDelete:function(t){var e=this;return Object(Q["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.loading=!0,n.next=3,V["a"].get("http://120.79.36.53:8888/chatbot/delete",{params:{id:t}});case 3:a=n.sent,a.data,e.initCartList(),e.loading=!1;case 7:case"end":return n.stop()}}),n)})))()},refreshPage:function(){location.reload()},gotoDetail:function(t){this.$router.push("/home/chatinfo/"+t)},addChat:function(){this.$router.push("/home/addChat/")},initCartList:function(){var t=this;return Object(Q["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,V["a"].get("http://120.79.36.53:8888/chatbot/page",{params:{page:t.currentPage,pageSize:t.pageSize,question:t.formInline.question}});case 3:n=e.sent,a=n.data,200===a.code&&(t.userlist=a.result.records,t.total=a.result.total,localStorage.setItem("lastPage",t.currentPage),localStorage.setItem("lastQuestion",t.formInline.question)),t.loading=!1;case 7:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.currentPage=t,this.initCartList()}}}),dt=pt,mt=(n("c124"),Object(l["a"])(dt,ct,ut,!1,null,"c92e998c",null)),ft=mt.exports,ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h4",{staticClass:"text-center"},[t._v("系统设置")])},gt=[],vt={name:"MySettings"},bt=vt,_t=Object(l["a"])(bt,ht,gt,!1,null,"accd7558",null),yt=_t.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:function(e){return t.$router.back()}}},[t._v("后退")]),n("h4",{staticClass:"text-center"},[t._v("用户详情 --- "+t._s(t.id))])])},kt=[],Ct={name:"MyUserDetail",props:["id"]},xt=Ct,Pt=Object(l["a"])(xt,wt,kt,!1,null,"bea9073a",null),St=Pt.exports,$t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:t.goBack}},[t._v("后退")]),n("h4",{staticClass:"text-center"},[t._v("ChatGpt问答详情 --- "+t._s(t.id))]),n("el-container",[n("el-main",[n("el-table",{attrs:{border:"",data:t.list}},[n("el-table-column",{attrs:{label:"序号",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.id))])]}}])}),n("el-table-column",{attrs:{label:"问题",width:"240"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.question))])]}}])}),n("el-table-column",{attrs:{label:"回答"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{attrs:{id:"td-response"}},[t._v(t._s(e.row.response))])]}}])}),n("el-table-column",{attrs:{label:"创建时间",width:"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("dateFormat")(e.row.createTime)))])]}}])})],1)],1)],1),n("div",{staticClass:"button-container"},[n("el-button",{attrs:{type:"primary",round:""},on:{click:t.copyCode}},[t._v("复制回答")])],1)],1)},Ot=[],jt={name:"MyChatDetail",props:["id"],data:function(){return{list:[]}},created:function(){this.initChatList()},methods:{goBack:function(){var t={back:"back"};this.$router.push({path:"/home/chat",query:t})},initChatList:function(){var t=this;return Object(Q["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,V["a"].get("http://120.79.36.53:8888/chatbot/"+t.id);case 2:n=e.sent,a=n.data,200===a.code&&(t.list=[{id:a.result.id,question:a.result.question,response:a.result.response,createTime:a.result.createTime}]);case 5:case"end":return e.stop()}}),e)})))()},copyCode:function(){var t=document.getElementById("td-response"),e=document.createRange();e.selectNode(t);var n=window.getSelection();n.removeAllRanges(),n.addRange(e),document.execCommand("copy"),n.removeAllRanges(),this.$message.success("代码已复制到剪贴板")}}},qt=jt,It=(n("022e"),Object(l["a"])(qt,$t,Ot,!1,null,"9d5d30a4",null)),Mt=It.exports,Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{type:"primary",plain:"",size:"medium"},on:{click:t.goBack}},[t._v("后退")]),n("h4",{staticClass:"text-center"},[t._v("新增ChatGpt问答")]),n("el-container",{staticClass:"container"},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"问题"}},[n("el-input",{model:{value:t.form.question,callback:function(e){t.$set(t.form,"question",e)},expression:"form.question"}})],1),n("el-form-item",{attrs:{label:"答案"}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.form.response,callback:function(e){t.$set(t.form,"response",e)},expression:"form.response"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即创建")]),n("el-button",{on:{click:t.clearContent}},[t._v("取消")])],1)],1)],1)],1)},Et=[],Tt={name:"AddChatDetail",data:function(){return{form:{question:"",response:""}}},methods:{clearContent:function(){this.form.question="",this.form.response=""},onSubmit:function(){var t=this;return Object(Q["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n={question:t.form.question,response:t.form.response},V["a"].post("http://120.79.36.53:8888/chatbot",n).then((function(e){200===e.data.code&&(t.$message.success({message:"问题和答案新增成功",duration:1e3}),t.goBack())})).catch((function(e){t.$message.error("系统异常")}));case 2:case"end":return e.stop()}}),e)})))()},goBack:function(){var t={back:"back",add:"add"};this.$router.push({path:"/home/chat",query:t})}}},Rt=Tt,Lt=(n("66f9"),Object(l["a"])(Rt,Dt,Et,!1,null,"ddc6c3e0",null)),zt=Lt.exports;a["default"].use(p["a"]);var Nt=new p["a"]({routes:[{path:"/",redirect:"/login"},{path:"/login",component:b},{path:"/home",component:R,redirect:"/home/chat",children:[{path:"users",component:A},{path:"pic",component:K},{path:"goods",component:nt},{path:"orders",component:lt},{path:"chat",component:ft},{path:"settings",component:yt},{path:"userinfo/:id",component:St,props:!0},{path:"chatinfo/:id",component:Mt,props:!0},{path:"addChat",component:zt}]}]});Nt.beforeEach((function(t,e,n){if(-1!==d.indexOf(t.path)){var a=localStorage.getItem("token");a?n():n("/login")}else n()}));var Ut=Nt,Ht=n("5c96"),At=n.n(Ht),Bt=(n("0fae"),n("16b4"),n("a766"),n("5a0c")),Ft=n.n(Bt);a["default"].prototype.$dayjs=Ft.a,a["default"].filter("dateFormat",(function(t){var e=Ft()(t).format("YYYY-MM-DD HH:mm:ss");return e})),a["default"].use(At.a),a["default"].config.productionTip=!1,new a["default"]({render:function(t){return t(u)},router:Ut}).$mount("#app")},"66f9":function(t,e,n){"use strict";n("155e")},7678:function(t,e,n){t.exports=n.p+"img/kwan.80e90605.png"},"7bce":function(t,e,n){"use strict";n("c20a")},"7ee9":function(t,e,n){},"8e01":function(t,e,n){},9547:function(t,e,n){"use strict";n("4084")},"9d40":function(t,e,n){"use strict";n("7ee9")},a766:function(t,e,n){},c124:function(t,e,n){"use strict";n("e157")},c20a:function(t,e,n){},c7d0:function(t,e,n){},e157:function(t,e,n){}});
//# sourceMappingURL=app.8dff95dc.js.map