Browse Source

接口修改

lilei 4 years ago
parent
commit
513b98de13
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/login.js
  2. 1 1
      libs/axios.js

+ 1 - 1
api/login.js

@@ -6,7 +6,7 @@ export const login = params => {
     method: 'post',
 	header: { 'Content-Type': 'application/x-www-form-urlencoded' },
 	data: params
-  })
+  },true)
 };
 export const logout = params => {
   return axios.request({

+ 1 - 1
libs/axios.js

@@ -7,7 +7,7 @@ const request = (opts, hasToken) => {
 	const header = {
 			'Content-Type': 'application/json;charset=UTF-8'
 		}
-	if(!hasToken&&(opts.url=='checkToken'||opts.url=='logout')){
+	if(!hasToken){
 		header['X-AUTH-TOKEN'] = authorization
 	}	
 	//此token是登录成功后后台返回保存在storage中的