Showing
2 changed files
with
8 additions
and
8 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-05-18 22:56:08 | 2 | * @Date: 2022-05-18 22:56:08 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-22 10:28:43 | 4 | + * @LastEditTime: 2024-01-04 16:06:04 |
| 5 | * @FilePath: /meihuaApp/src/api/fn.js | 5 | * @FilePath: /meihuaApp/src/api/fn.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| 8 | import axios from '@/utils/request'; | 8 | import axios from '@/utils/request'; |
| 9 | import Taro from '@tarojs/taro' | 9 | import Taro from '@tarojs/taro' |
| 10 | -import qs from 'qs' | 10 | +// import qs from 'qs' |
| 11 | 11 | ||
| 12 | /** | 12 | /** |
| 13 | * 网络请求功能函数 | 13 | * 网络请求功能函数 |
| ... | @@ -77,9 +77,9 @@ export const fetch = { | ... | @@ -77,9 +77,9 @@ export const fetch = { |
| 77 | post: function (api, params) { | 77 | post: function (api, params) { |
| 78 | return axios.post(api, params) | 78 | return axios.post(api, params) |
| 79 | }, | 79 | }, |
| 80 | - stringifyPost: function (api, params) { | 80 | + // stringifyPost: function (api, params) { |
| 81 | - return axios.post(api, qs.stringify(params)) | 81 | + // return axios.post(api, qs.stringify(params)) |
| 82 | - }, | 82 | + // }, |
| 83 | basePost: function (url, data, config) { | 83 | basePost: function (url, data, config) { |
| 84 | return axios.post(url, data, config) | 84 | return axios.post(url, data, config) |
| 85 | } | 85 | } | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-22 10:40:51 | 4 | + * @LastEditTime: 2024-01-04 16:06:13 |
| 5 | * @FilePath: /meihuaApp/src/utils/request.js | 5 | * @FilePath: /meihuaApp/src/utils/request.js |
| 6 | * @Description: 简单axios封装,后续按实际处理 | 6 | * @Description: 简单axios封装,后续按实际处理 |
| 7 | */ | 7 | */ |
| 8 | // import axios from 'axios' | 8 | // import axios from 'axios' |
| 9 | import axios from 'axios-miniprogram'; | 9 | import axios from 'axios-miniprogram'; |
| 10 | import Taro from '@tarojs/taro' | 10 | import Taro from '@tarojs/taro' |
| 11 | -import { strExist } from './tools' | 11 | +// import { strExist } from './tools' |
| 12 | -import qs from 'Qs' | 12 | +// import qs from 'Qs' |
| 13 | import { routerStore } from '@/stores/router' | 13 | import { routerStore } from '@/stores/router' |
| 14 | 14 | ||
| 15 | // import { ProgressStart, ProgressEnd } from '@/components/axios-progress/progress'; | 15 | // import { ProgressStart, ProgressEnd } from '@/components/axios-progress/progress'; | ... | ... |
-
Please register or login to post a comment