| | |
| | | })
|
| | |
|
| | | export const get = async (url, params) => {
|
| | | if (params?.condition != null && params?.condition != undefined && params?.condition != "") {
|
| | | params.current = 1
|
| | | }
|
| | | if (params?._param != null && params?._param != undefined && hasNonEmptyProperty(params?._param)) {
|
| | | data.current = 1
|
| | | }
|
| | | // if (params?.condition != null && params?.condition != undefined && params?.condition != "") {
|
| | | // params.current = 1
|
| | | // }
|
| | | // if (params?._param != null && params?._param != undefined && hasNonEmptyProperty(params?._param)) {
|
| | | // data.current = 1
|
| | | // }
|
| | |
|
| | | return instance({
|
| | | url: url,
|
| | |
| | | }
|
| | |
|
| | | export const post = async (url, data) => {
|
| | | if (data?.condition != null && data?.condition != undefined && data?.condition != "") {
|
| | | data.current = 1
|
| | | }
|
| | | if (data._param != null && data._param != undefined && hasNonEmptyProperty(data?._param)) {
|
| | | data.current = 1
|
| | | }
|
| | | // if (data?.condition != null && data?.condition != undefined && data?.condition != "") {
|
| | | // data.current = 1
|
| | | // }
|
| | | // if (data._param != null && data._param != undefined && hasNonEmptyProperty(data?._param)) {
|
| | | // data.current = 1
|
| | | // }
|
| | | return instance({
|
| | | url: url,
|
| | | method: 'post',
|