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

[feature request] 在文档中增加 vuepress 的配置说明 #277

Open
Yesterday17 opened this issue May 31, 2019 · 0 comments
Open

[feature request] 在文档中增加 vuepress 的配置说明 #277

Yesterday17 opened this issue May 31, 2019 · 0 comments

Comments

@Yesterday17
Copy link

if (typeof window !== 'undefined') {
const { default: APlayer } = require('@moefe/vue-aplayer');
localStorage.setItem('aplayer-setting', '[]');
Vue.use(APlayer);
}

就是上面这一段,找了好久,否则会报错 ReferenceError: document is not defined.

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

1 participant