vue-markdown icon indicating copy to clipboard operation
vue-markdown copied to clipboard

TypeError: Cannot read property 'replace' of null

Open MyKings opened this issue 6 years ago • 1 comments

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.

MyKings avatar May 24 '19 06:05 MyKings

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

jerichosiahaya avatar Apr 06 '22 02:04 jerichosiahaya