diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..aecdae7a --- /dev/null +++ b/.env.development @@ -0,0 +1,14 @@ +# 本地环境 +NODE_ENV = development + +# 标题 +VUE_APP_TITLE = SCUI(DEV) + +# 接口地址 +VUE_APP_API_BASEURL = https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api + +# 本地端口 +VUE_APP_PORT = 2800 + +# 是否开启代理 +VUE_APP_PROXY = true \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 00000000..900739dd --- /dev/null +++ b/.env.production @@ -0,0 +1,8 @@ +# 生产环境 +NODE_ENV = production + +# 标题 +VUE_APP_TITLE = SCUI + +# 接口地址 +VUE_APP_API_BASEURL = https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api \ No newline at end of file diff --git a/public/config.js b/public/config.js index 6ab642ad..306b79f3 100644 --- a/public/config.js +++ b/public/config.js @@ -4,8 +4,8 @@ const APP_CONFIG = { //标题 - APP_NAME: "SCUI", + //APP_NAME: "SCUI", //接口地址,如遇跨域需使用nginx代理 - API_URL: "https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api" + //API_URL: "https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api" } diff --git a/public/index.html b/public/index.html index 9b2e323f..3101df9a 100644 --- a/public/index.html +++ b/public/index.html @@ -5,14 +5,14 @@ -