webpackJsonp([5],{"+CO5":function(t,n){},"5DMK":function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=i("I22p"),o={name:"wangeditor",data:function(){return{content:"",title:"",editorOption:null,docid:""}},created:function(){this.docid=this.$route.query.docid,this.articleDetail(this.docid)},methods:{articleDetail:function(t){var n=this;e.a.articleDetail({docid:t}).then(function(t){console.log(t,999),0==t.err_code&&(n.content=t.data.doc,n.title=t.data.title)})},sure:function(){this.articleEdit()},cancel:function(){this.$router.back()},articleEdit:function(){var t=this,n={docid:this.docid,title:this.title,doc:this.content,folderid:""};e.a.articleEdit(n).then(function(n){0==n.err_code&&(t.$notify({type:"success",duration:1500,message:"保存成功"}),t.$router.back())})},onEditorBlur:function(){},onEditorFocus:function(){},onEditorReady:function(){},onEditorChange:function(){}}},c={render:function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"editor"},[i("van-field",{staticClass:"doc_name",attrs:{"input-align":"center"},model:{value:t.title,callback:function(n){t.title=n},expression:"title"}}),t._v(" "),i("quill-editor",{ref:"myQuillEditor",staticClass:"quill_editor",attrs:{options:t.editorOption},on:{blur:function(n){return t.onEditorBlur(n)},focus:function(n){return t.onEditorFocus(n)},ready:function(n){return t.onEditorReady(n)},change:function(n){return t.onEditorChange(n)}},model:{value:t.content,callback:function(n){t.content=n},expression:"content"}}),t._v(" "),i("div",{staticClass:"bottom"},[i("van-button",{attrs:{plain:"",type:"info",color:"#cccccc"},on:{click:t.cancel}},[t._v("取消")]),t._v(" "),i("van-button",{attrs:{type:"info"},on:{click:t.sure}},[t._v("确定")])],1)],1)},staticRenderFns:[]};var r=i("VU/8")(o,c,!1,function(t){i("+CO5")},"data-v-2354df94",null);n.default=r.exports}});
//# sourceMappingURL=5.9cd0f2020c75b7a9dbf1.js.map