如果控制pre code是通过v-show来显示
<pre v-show="isShow" v-highlight><code>{{ code }}</code></pre>
那么highlight.js的高亮样式可能不会生效
神奇的是,改为v-if,就能显示高亮样式了