request.ts 373 Bytes
/**
 * GSC API 请求封装
 */

/**
 * GSC POST 请求
 */
export function gscPost(url: string, data: any, _config: any = {}) {
	console.log("BBBBBBB调用");
	console.log(window.$gscApi, "========");
	if (!window.$gscApi) {
		throw new Error("$gscApi is not initialized. Please wait for the configuration to load.");
	}
	return window.$gscApi.post(url, data, _config);
}