上传
This commit is contained in:
@@ -79,7 +79,7 @@ service.interceptors.request.use(
|
||||
config.data = qs.stringify(data)
|
||||
}
|
||||
// get参数编码
|
||||
if (config.method?.toUpperCase() === 'GET' && params) {
|
||||
if (config.method?.toUpperCase() === 'GET' && Object.keys(params).length > 0) {
|
||||
config.params = {}
|
||||
const paramsStr = qs.stringify(params, { allowDots: true })
|
||||
if (paramsStr) {
|
||||
|
||||
Reference in New Issue
Block a user