Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
99d742df
authored
2019-11-11 17:03:03 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
6e10fcf8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
9 deletions
.env.development
.env.production
.env.sandbox
src/api/fetch-api.js
src/pages/login/login.js
src/pages/register/register.js
.env.development
View file @
99d742d
NODE_ENV = 'development'
VUE_APP_TITLE = 'development'
VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
...
...
.env.production
View file @
99d742d
NODE_ENV = 'production'
VUE_APP_TITLE = 'dist'
VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
...
...
.env.sandbox
View file @
99d742d
NODE_ENV = 'sandbox'
VUE_APP_TITLE = 'sandbox'
REQUEST_DOMAIN= 'https://ow.go.qudone.com'
RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
RSA_KEY_INDEX = '10001'
\ No newline at end of file
VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
...
...
src/api/fetch-api.js
View file @
99d742d
import
axios
from
'axios'
;
import
axios
Ins
from
'axios'
;
// import {
// Toast
// } from 'vant';
...
...
@@ -11,8 +11,14 @@ function Toast(msg) {
// axios.defaults.baseURL = ""
// 服务器地址
let
base
=
process
.
env
.
REQUEST_DOMAIN
||
"http://localhost:9101"
;
//
let base = process.env.REQUEST_DOMAIN || "http://localhost:9101";
// let base = COM.baseUrl;
let
base
=
""
console
.
log
(
"process.env:"
,
process
.
env
);
const
axios
=
axiosIns
.
create
({
baseURL
:
process
.
env
.
VUE_APP_BASE_URL
||
"http://localhost:9101"
,
timeout
:
5000
})
// 请求拦截器
// axios.interceptors.request.use(
...
...
src/pages/login/login.js
View file @
99d742d
...
...
@@ -45,8 +45,8 @@ export default {
showImageCode
:
false
,
agreeProtocol
:
false
},
PK
:
process
.
env
.
RSA_PUBLIC_KEY
||
PK
,
E
:
process
.
env
.
RSA_KEY_INDEX
||
E
,
PK
:
process
.
env
.
VUE_APP_
RSA_PUBLIC_KEY
||
PK
,
E
:
process
.
env
.
VUE_APP_
RSA_KEY_INDEX
||
E
,
}
},
components
:
{},
...
...
src/pages/register/register.js
View file @
99d742d
...
...
@@ -39,8 +39,8 @@ export default {
remain
:
0
,
// 剩余时间
tip
:
""
// 显示的文字
},
PK
:
process
.
env
.
RSA_PUBLIC_KEY
||
PK
,
E
:
process
.
env
.
RSA_KEY_INDEX
||
E
,
PK
:
process
.
env
.
VUE_APP_
RSA_PUBLIC_KEY
||
PK
,
E
:
process
.
env
.
VUE_APP_
RSA_KEY_INDEX
||
E
,
}
},
components
:
{},
...
...
Please
register
or
sign in
to post a comment