no message
Former-commit-id: 1c069d76278e418a4025d9507b64394b78d6c1dc Former-commit-id: 196c50502c7c5dd567997000db8007406f2c7866 Former-commit-id: ce840c9b082c237c18e93ca38dc704000e355341 Former-commit-id: 81026579f627bbcbafce3aebbe444b9678cc4530
This commit is contained in:
@@ -19,7 +19,7 @@ export default {
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
md: {
|
||||
source: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
mounted () {
|
||||
if (this.url) {
|
||||
this.initWithUrl()
|
||||
} else if (this.md) {
|
||||
} else if (this.source) {
|
||||
this.initWithMd()
|
||||
} else {
|
||||
console.log('not mounted init')
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
methods: {
|
||||
// 使用 md 初始化
|
||||
initWithMd () {
|
||||
this.markedHTML = this.marked(this.md)
|
||||
this.markedHTML = this.marked(this.source)
|
||||
},
|
||||
// 使用 url 初始化
|
||||
async initWithUrl () {
|
||||
|
||||
Reference in New Issue
Block a user