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

VUE_APP_WS_API 未定义 #3

Closed
akaxiaok opened this issue Jan 16, 2020 · 1 comment
Closed

VUE_APP_WS_API 未定义 #3

akaxiaok opened this issue Jan 16, 2020 · 1 comment

Comments

@akaxiaok
Copy link

https://github.com/Perye/dokit/blob/4a786a3c0f8a8e4e99b3f4781bce0526219f9a2d/dokit-front/src/views/mnt/deploy/deploy.vue#L149

@perye
Copy link
Owner

perye commented Jan 16, 2020

修改 .env.development 文件

ENV = 'development'

# 接口地址
VUE_APP_BASE_API  = 'http://localhost:8080'
VUE_APP_WS_API = 'ws://localhost:8080'

# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@perye perye closed this as completed Jan 20, 2020
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