Commit 5aac1487 by Tippi.Rao

加一个服务器没有最后面的 /

parent ab8e3204
...@@ -4,6 +4,7 @@ EDITOR=code ...@@ -4,6 +4,7 @@ EDITOR=code
# base api # base api
# VUE_APP_BASE_API = '/dev-api' # VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://192.168.1.100:8081/' VUE_APP_BASE_API = 'http://192.168.1.100:8081/'
VUE_APP_BASE = 'http://192.168.1.100:8081'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # to control whether the babel-plugin-dynamic-import-node plugin is enabled.
# It only does one thing by converting all import() to require(). # It only does one thing by converting all import() to require().
......
...@@ -4,4 +4,5 @@ ENV = 'production' ...@@ -4,4 +4,5 @@ ENV = 'production'
# base api # base api
# VUE_APP_BASE_API = 'http://localhost:8081/' # VUE_APP_BASE_API = 'http://localhost:8081/'
VUE_APP_BASE_API = 'http://192.168.1.100:8081/' VUE_APP_BASE_API = 'http://192.168.1.100:8081/'
VUE_APP_BASE = 'http://192.168.1.100:8081'
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
}, },
computed: { computed: {
origin() { origin() {
return process.env.VUE_APP_BASE_API return process.env.VUE_APP_BASE
} }
}, },
created() { created() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论