刘嘉威
2023-02-24 ddb1df24b17dd22e1fa088fa9fe8573913baec33
src/api/api.ts
@@ -1,7 +1,7 @@
/*
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-10-11 16:09:59
 * @LastEditTime: 2023-02-24 15:04:36
 */
import axios from 'axios';
@@ -112,7 +112,7 @@
 * @param {Params} params
 * @return {*}
 */
export const GETNOBASE = async (url: string, params: Params): Promise<any> => {
export const GETNOBASE = async (url: string, params?: Params): Promise<any> => {
    try {
        const data = await axios.get(url, {
            params: params,