vue-zhihu-daily icon indicating copy to clipboard operation
vue-zhihu-daily copied to clipboard

news.vue报错 正则

Open torresyb opened this issue 8 years ago • 2 comments

const imgReg = /<img\s[^>]?src\s=\s*'"['"][^>]?>/g 改为 const imgReg = /<img\s[^>]?src\s*=\s*'"['"][^>]*?>/g 就好了

再就是要自己在装下vuex-router-sync

整个程序就能启动了。

torresyb avatar Nov 22 '16 13:11 torresyb

index/store.js const mutations = { SET_ARTICLES (state, date, arr) { state.days.push({ date: date, articles: arr }) }, SET_DATE_POINTER (state, value) { state.datePointer = value }, SET_THEMES (state, arr) { state.themes = arr } }

torresyb avatar Nov 22 '16 14:11 torresyb

@torresyb 看来忘了添加 vuex-router-sync 依赖了

hilongjw avatar Nov 23 '16 04:11 hilongjw