1)新聞詳情頁后台給我的數據是加密之后的,我問了后台,是用encodeURIComponent()加密的,然后我就用對應的方法decodeURIComponent()解密:
this.$store.state.news.main =decodeURIComponent(data.FormattedBody);
2) 然后{{this.$store.state.news.main}}這樣填數據,等我看頁面的時候,頁面上出現了一串字符串,然后我就想起了v-html,
<div v-html="this.$store.state.news.main">
  {{this.$store.state.news.main}}
</div>
 
        
注意:v-html的引號里面的內容要和{{}}的內容是一樣的,這樣,頁面就正常顯示了
