text: webpackJsonp([6],{"5bKN":function(t,n){},lSQN:function(t,n){},zGow:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("5reh"),a=e("0xDb"),s=e("d1ZA"),o=e("mWPw"),c=e("FCIa"),l={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{staticClass:"xg-404"},[this._m(0),this._v(" "),n("div",[this._t("content",[this._v("\n      没有找到此记录，请查看ID是否有误！\n    ")])],2)])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("div",[n("i",{staticClass:"icon icon-404"})])}]};var r=e("VU/8")({name:"Xg404"},l,!1,function(t){e("5bKN")},"data-v-1356af63",null).exports,d={name:"XgNote",beforeMount:function(){this.getNote()},data:function(){return{note:"",loading:""}},computed:{tagName:function(){return this.$store.state.tagMap[this.note.tag]}},watch:{loading:function(t){t?this.$indicator.open({spinnerType:"fading-circle"}):this.$indicator.close()}},methods:{getNote:function(){var t=this;this.loading=!0,this.$store.dispatch(i.e,this.$route.params.id).then(function(n){t.note=n}).catch(function(){t.$toast({message:"获取数据失败"})}).finally(function(){t.loading=!1,t.$indicator.close()})}},components:{XgTagIcon:s.a,XgCollectBtn:o.a,XgFinishBtn:c.a,Xg404:r},filters:{formatDate:a.c}},f={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.loading?t._e():e("div",{staticClass:"note"},[t.note?[e("div",{staticClass:"note-title"},[e("h2",[t._v(t._s(t.note.title))]),t._v(" "),e("ul",{staticClass:"note-info"},[e("li",{staticClass:"note-finish note-info-item"},[e("xg-finish-btn",{attrs:{finish:t.note.finish,id:t.note.id}}),t._v(" "),t.note.finish?e("span",[t._v("已完成")]):e("span",[t._v("未完成")])],1),t._v(" "),e("li",{staticClass:"note-tag note-info-item"},[e("xg-tag-icon",{attrs:{type:t.note.tag}}),t._v("\n          "+t._s(t.tagName)+"\n        ")],1),t._v(" "),e("li",{staticClass:"note-collect note-info-item"},[e("xg-collect-btn",{attrs:{collect:t.note.collect,id:t.note.id}}),t._v(" "),t.note.collect?e("span",[t._v("已收藏")]):e("span",[t._v("未收藏")])],1)])]),t._v(" "),e("div",{staticClass:"note-content"},[e("p",[t._v(t._s(t.note.content))])]),t._v(" "),e("div",{staticClass:"note-date"},[t._v("\n      编辑于： "+t._s(t._f("formatDate")(t.note.update_at))+"\n    ")])]:e("xg-404")],2)},staticRenderFns:[]};var v=e("VU/8")(d,f,!1,function(t){e("lSQN")},"data-v-13bd9a70",null);n.default=v.exports}});