Ver código fonte

edit 配置

master
chutingting 1 ano atrás
pai
commit
1b69583823
7 arquivos alterados com 432 adições e 67 exclusões
  1. +5
    -0
      .env.development
  2. +6
    -0
      .env.int
  3. +7
    -0
      .env.production
  4. +407
    -61
      package-lock.json
  5. +5
    -4
      package.json
  6. +1
    -1
      src/api/request.js
  7. +1
    -1
      src/components/header.vue

+ 5
- 0
.env.development Ver arquivo

@@ -0,0 +1,5 @@
# just a flag
ENV = 'development'

# base api
VUE_APP_BASE_API = '/api'

+ 6
- 0
.env.int Ver arquivo

@@ -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'

+ 7
- 0
.env.production Ver arquivo

@@ -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'


+ 407
- 61
package-lock.json
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 5
- 4
package.json Ver arquivo

@@ -3,9 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"int": "vue-cli-service build --mode int",
"lint": "eslint --ext .js,.vue src"
},
"dependencies": {
"axios": "^1.6.5",
@@ -28,8 +29,8 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"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"
}
}

+ 1
- 1
src/api/request.js Ver arquivo

@@ -2,7 +2,7 @@ import axios from 'axios'
// create an axios instance
const service = axios.create({
baseURL: '/api', // /api
baseURL: process.env.VUE_APP_BASE_API, // /api
timeout: 1000 * 30 // request timeout
})


+ 1
- 1
src/components/header.vue Ver arquivo

@@ -42,7 +42,7 @@ export default {
margin-right: 60px;
background-color: #ffffff00 !important;
}
.el-menu-item:nth-last-child() {
.el-menu-item:nth-last-child(1) {
margin-right: 0;
}
.is-active {


Carregando…
Cancelar
Salvar