miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

TypeError: Cannot read property 'replace' of null #95

Open MyKings opened 5 years ago

MyKings commented 5 years ago

Hi,

I found that when I import VueMarkdown and use the \<vue-markdown> tag, vue-markdown will report an error if the json data returned by the api interface is null.

detail.vue

1

json data 33

error

2

I am not sure if this is a BUG, so I submitted this issue.

jerichosiahaya commented 2 years ago

just use v-if to check the property of the data first before rendering the component