no message
Former-commit-id: 0afcb80e2376f31c977e5fe377dc79562f67828e Former-commit-id: f36bef0cfaddf35d3a181cb83988320ea83f0721 Former-commit-id: 5ec5dfde1237a419cce65f37d540f0f3847a331f
This commit is contained in:
@@ -9,16 +9,20 @@ import SimpleMDE from 'simplemde'
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
// 编辑器实例
|
||||||
mde: null
|
mde: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
// 初始化
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
destroyed () {
|
destroyed () {
|
||||||
|
// 在组件销毁后销毁实例
|
||||||
this.mde = null
|
this.mde = null
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 初始化
|
||||||
init () {
|
init () {
|
||||||
this.mde = new SimpleMDE({
|
this.mde = new SimpleMDE({
|
||||||
element: this.$refs.mde
|
element: this.$refs.mde
|
||||||
|
|||||||
Reference in New Issue
Block a user