diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..b5ed980 --- /dev/null +++ b/.env.development @@ -0,0 +1,4 @@ +NODE_ENV='development' +VUE_APP_TITLE='开发环境地址' +VUE_APP_BASE_API="http://8.130.38.56:8043" +VUE_APP_BASE_WSS="ws://8.130.38.56:8043/api/message/websocket" \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..43a4042 --- /dev/null +++ b/.env.production @@ -0,0 +1,5 @@ + +NODE_ENV='development' +VUE_APP_TITLE='生产环境' +VUE_APP_BASE_API="http://8.130.38.56:8043" +VUE_APP_BASE_WSS="ws://8.130.38.56:8043/api/message/websocket" \ No newline at end of file diff --git a/package.json b/package.json index c54d024..049d793 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", + "build:stage": "vue-cli-service build --mode development", + "build:prod": "vue-cli-service build --mode production", "lint": "vue-cli-service lint" }, "dependencies": { diff --git a/src/components/ColumnSettings/index.vue b/src/components/ColumnSettings/index.vue index faf66be..640bb48 100644 --- a/src/components/ColumnSettings/index.vue +++ b/src/components/ColumnSettings/index.vue @@ -39,7 +39,7 @@ export default { } } -