字典接口

This commit is contained in:
仲么了
2023-04-04 09:14:20 +08:00
parent feb7d7b6ed
commit 06d06df88b
4 changed files with 33 additions and 3 deletions

12
common/api/dictionary.js Normal file
View 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,
},
});
}

View File

@@ -18,5 +18,8 @@ export function getProjectList (params) {
url: '/project/queryProject',
method: 'post',
data: params,
header: {
'Content-Type': 'application/json',
},
})
}

View File

@@ -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,
},