Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

news.vue报错 正则 #15

Open
torresyb opened this issue Nov 22, 2016 · 2 comments
Open

news.vue报错 正则 #15

torresyb opened this issue Nov 22, 2016 · 2 comments

Comments

@torresyb
Copy link

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

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

整个程序就能启动了。

@torresyb
Copy link
Author

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
}
}

@hilongjw
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants