| @@ -0,0 +1,5 @@ | |||||
| # just a flag | |||||
| ENV = 'development' | |||||
| # base api | |||||
| VUE_APP_BASE_API = '/api' | |||||
| @@ -0,0 +1,6 @@ | |||||
| NODE_ENV = 'production' | |||||
| OUTPUT_DIR = 'int' | |||||
| VUE_APP_ENV = 'int' | |||||
| # base api | |||||
| VUE_APP_BASE_API = 'https://www.meta-autotv.com/homeC' | |||||
| @@ -0,0 +1,7 @@ | |||||
| NODE_ENV = 'production' | |||||
| OUTPUT_DIR = 'pro' | |||||
| VUE_APP_ENV = 'production' | |||||
| # base api | |||||
| VUE_APP_BASE_API = 'https://www.meta-autotv.com/homeC' | |||||
| @@ -3,9 +3,10 @@ | |||||
| "version": "0.1.0", | "version": "0.1.0", | ||||
| "private": true, | "private": true, | ||||
| "scripts": { | "scripts": { | ||||
| "serve": "vue-cli-service serve", | |||||
| "dev": "vue-cli-service serve", | |||||
| "build": "vue-cli-service build", | "build": "vue-cli-service build", | ||||
| "lint": "vue-cli-service lint" | |||||
| "int": "vue-cli-service build --mode int", | |||||
| "lint": "eslint --ext .js,.vue src" | |||||
| }, | }, | ||||
| "dependencies": { | "dependencies": { | ||||
| "axios": "^1.6.5", | "axios": "^1.6.5", | ||||
| @@ -28,8 +29,8 @@ | |||||
| "eslint-plugin-promise": "^4.2.1", | "eslint-plugin-promise": "^4.2.1", | ||||
| "eslint-plugin-standard": "^4.0.0", | "eslint-plugin-standard": "^4.0.0", | ||||
| "eslint-plugin-vue": "^6.2.2", | "eslint-plugin-vue": "^6.2.2", | ||||
| "node-sass": "^4.14.1", | |||||
| "sass-loader": "^8.0.2", | |||||
| "sass": "1.26.8", | |||||
| "sass-loader": "8.0.2", | |||||
| "vue-template-compiler": "^2.6.11" | "vue-template-compiler": "^2.6.11" | ||||
| } | } | ||||
| } | } | ||||
| @@ -2,7 +2,7 @@ import axios from 'axios' | |||||
| // create an axios instance | // create an axios instance | ||||
| const service = axios.create({ | const service = axios.create({ | ||||
| baseURL: '/api', // /api | |||||
| baseURL: process.env.VUE_APP_BASE_API, // /api | |||||
| timeout: 1000 * 30 // request timeout | timeout: 1000 * 30 // request timeout | ||||
| }) | }) | ||||
| @@ -42,7 +42,7 @@ export default { | |||||
| margin-right: 60px; | margin-right: 60px; | ||||
| background-color: #ffffff00 !important; | background-color: #ffffff00 !important; | ||||
| } | } | ||||
| .el-menu-item:nth-last-child() { | |||||
| .el-menu-item:nth-last-child(1) { | |||||
| margin-right: 0; | margin-right: 0; | ||||
| } | } | ||||
| .is-active { | .is-active { | ||||