(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c4dc7"],{"3d44":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("基本配置")])]),a("div",{staticClass:"tip"},[a("p",[e._v(" 74IM是国内首家专业的即时通讯云服务提供商，专注为互联网、移动互联网开发者提供即时通讯基础能力和云端服务 "),a("a",{staticStyle:{color:"rgb(30, 136, 229)"},attrs:{href:"http://imcenter.74cms.com/",target:"_blank"}},[e._v(" 马上申请 ")])])]),a("el-form",{ref:"form",staticClass:"common-form",attrs:{model:e.form,"label-width":"120px",rules:e.rules,"inline-message":!0}},[a("el-form-item",{attrs:{label:"app_key"}},[a("el-input",{model:{value:e.form.app_key,callback:function(t){e.$set(e.form,"app_key",t)},expression:"form.app_key"}})],1),a("el-form-item",{attrs:{label:"app_secret"}},[a("el-input",{model:{value:e.form.app_secret,callback:function(t){e.$set(e.form,"app_secret",t)},expression:"form.app_secret"}})],1),a("el-form-item",{attrs:{label:"接口地址"}},[a("el-input",{model:{value:e.im_server,callback:function(t){e.im_server=t},expression:"im_server"}})],1),a("el-form-item",{attrs:{label:"websocket地址"}},[a("el-input",{model:{value:e.im_websocket,callback:function(t){e.im_websocket=t},expression:"im_websocket"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSubmit("form")}}},[e._v(" 保存 ")])],1)],1)],1)],1)},s=[],i=a("5530"),c=a("1063"),o={data:function(){return{infoLoading:!1,form:{app_key:"",app_secret:""},im_server:"",im_websocket:"",rules:{}}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.infoLoading=!0;var t={};Object(c["j"])(t,"get").then((function(t){var a=Object(i["a"])({},t.data),r=a.account_im,s=a.im_server,c=a.im_websocket;e.form=r,e.im_server=s,e.im_websocket=c,e.infoLoading=!1})).catch((function(){}))},onSubmit:function(e){var t=this,a={account_im:Object(i["a"])({},this.form),im_server:this.im_server,im_websocket:this.im_websocket};this.$refs[e].validate((function(e){if(!e)return!1;Object(c["j"])(a).then((function(e){return t.$message.success(e.message),!0})).catch((function(){}))}))}}},n=o,l=a("2877"),m=Object(l["a"])(n,r,s,!1,null,null,null);t["default"]=m.exports}}]);