字典接口
This commit is contained in:
12
common/api/dictionary.js
Normal file
12
common/api/dictionary.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import request from '../js/request';
|
||||
import config from '../js/config';
|
||||
|
||||
export function queryDictData(dictType) {
|
||||
return request({
|
||||
url: '/dict/queryDictData',
|
||||
method: 'post',
|
||||
data: {
|
||||
dictType,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -18,5 +18,8 @@ export function getProjectList (params) {
|
||||
url: '/project/queryProject',
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@ export default (options = {}) => {
|
||||
...options.data,
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
// "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
// 'Content-Type': 'application/json;charset=UTF-8',
|
||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
Authorization: '12',
|
||||
...options.header,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user