askbot-dragon 1.8.23-beta → 1.8.25-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
Binary file
|
|
@@ -385,9 +385,11 @@ export default {
|
|
|
385
385
|
getIconSrc (element) {
|
|
386
386
|
if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
|
|
387
387
|
return require("../assets/image/filtType/wechat.png")
|
|
388
|
-
} else {
|
|
388
|
+
} else if (element.format !== 'url'){
|
|
389
389
|
return require("../assets/image/filtType/" + this.imageObj[element.format] + '.png')
|
|
390
390
|
|
|
391
|
+
} else if (element.format === 'url'){
|
|
392
|
+
return require("../assets/image/filtType/" + 'html.png')
|
|
391
393
|
}
|
|
392
394
|
},
|
|
393
395
|
//预览图片
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
mounted(){
|
|
35
35
|
this.$http.get(this.url).then(res => {
|
|
36
36
|
console.log('getMdText',res)
|
|
37
|
-
let markdown = marked.marked(res.
|
|
37
|
+
let markdown = marked.marked(res.data, {
|
|
38
38
|
breaks: true
|
|
39
39
|
})
|
|
40
40
|
this.compiledMarkdown = this.parseCode(markdown, "content");
|