|
@@ -4,7 +4,7 @@ import { axios } from '@/utils/request'
|
|
|
export function login ({ username, password }) {
|
|
|
return axios({
|
|
|
url: 'login',
|
|
|
- headers: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
|
+ headers: { 'content-type': 'application/x-www-form-urlencoded', 'App-Type': 1 },
|
|
|
data: `username=${username}&password=${password}`,
|
|
|
method: 'post'
|
|
|
}).then(res => res.data)
|