99d742df by simon

默认提交

1 parent 6e10fcf8
1 NODE_ENV = 'development' 1 NODE_ENV = 'development'
2 VUE_APP_TITLE = 'development' 2 VUE_APP_TITLE = 'development'
3 VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
4 VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
5 VUE_APP_RSA_KEY_INDEX = '10001'
......
1 1
2 NODE_ENV = 'production' 2 NODE_ENV = 'production'
3 VUE_APP_TITLE = 'dist' 3 VUE_APP_TITLE = 'dist'
4 VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
5 VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
6 VUE_APP_RSA_KEY_INDEX = '10001'
......
1 NODE_ENV = 'sandbox' 1 NODE_ENV = 'sandbox'
2 VUE_APP_TITLE = 'sandbox' 2 VUE_APP_TITLE = 'sandbox'
3 REQUEST_DOMAIN= 'https://ow.go.qudone.com'
4 RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
5 RSA_KEY_INDEX = '10001'
...\ No newline at end of file ...\ No newline at end of file
3 VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
4 VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
5 VUE_APP_RSA_KEY_INDEX = '10001'
......
1 import axios from 'axios'; 1 import axiosIns from 'axios';
2 // import { 2 // import {
3 // Toast 3 // Toast
4 // } from 'vant'; 4 // } from 'vant';
...@@ -11,8 +11,14 @@ function Toast(msg) { ...@@ -11,8 +11,14 @@ function Toast(msg) {
11 // axios.defaults.baseURL = "" 11 // axios.defaults.baseURL = ""
12 12
13 // 服务器地址 13 // 服务器地址
14 let base = process.env.REQUEST_DOMAIN || "http://localhost:9101"; 14 // let base = process.env.REQUEST_DOMAIN || "http://localhost:9101";
15 // let base = COM.baseUrl; 15 // let base = COM.baseUrl;
16 let base = ""
17 console.log("process.env:", process.env);
18 const axios = axiosIns.create({
19 baseURL: process.env.VUE_APP_BASE_URL || "http://localhost:9101",
20 timeout: 5000
21 })
16 22
17 // 请求拦截器 23 // 请求拦截器
18 // axios.interceptors.request.use( 24 // axios.interceptors.request.use(
......
...@@ -45,8 +45,8 @@ export default { ...@@ -45,8 +45,8 @@ export default {
45 showImageCode: false, 45 showImageCode: false,
46 agreeProtocol: false 46 agreeProtocol: false
47 }, 47 },
48 PK: process.env.RSA_PUBLIC_KEY || PK, 48 PK: process.env.VUE_APP_RSA_PUBLIC_KEY || PK,
49 E: process.env.RSA_KEY_INDEX || E, 49 E: process.env.VUE_APP_RSA_KEY_INDEX || E,
50 } 50 }
51 }, 51 },
52 components: {}, 52 components: {},
......
...@@ -39,8 +39,8 @@ export default { ...@@ -39,8 +39,8 @@ export default {
39 remain: 0, // 剩余时间 39 remain: 0, // 剩余时间
40 tip: "" // 显示的文字 40 tip: "" // 显示的文字
41 }, 41 },
42 PK: process.env.RSA_PUBLIC_KEY || PK, 42 PK: process.env.VUE_APP_RSA_PUBLIC_KEY || PK,
43 E: process.env.RSA_KEY_INDEX || E, 43 E: process.env.VUE_APP_RSA_KEY_INDEX || E,
44 } 44 }
45 }, 45 },
46 components: {}, 46 components: {},
......