Commit 67a3b0a3 authored by 杨梦雪's avatar 杨梦雪

111

parent 62613b50
...@@ -49,6 +49,13 @@ const allowRequest = function (reqList, url) { ...@@ -49,6 +49,13 @@ const allowRequest = function (reqList, url) {
let loadingInstance = null let loadingInstance = null
export function request(config) { export function request(config) {
const identity = localStorage.getItem('index-identity')
if(config['data']){
config['data']['identify'] = identity;
}else if(config['param']){
config['param']['identify'] = identity;
}
const instance = axios.create({ const instance = axios.create({
baseURL: process.env.NODE_ENV === 'development' ? baseURL: process.env.NODE_ENV === 'development' ?
DEVELOPMENT_SERVER_URL : DEVELOPMENT_SERVER_URL :
......
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
}, },
// 获取手机验证短信 // 获取手机验证短信
getCode() { getCode() {
// 倒计时60s // 倒计时60s
const TIME_COUNT = 60; const TIME_COUNT = 60;
if (!this.timer) { if (!this.timer) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment