update 0.0.4
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { TemplateBizType } from "../types";
|
||||
import Toolkit from "../utils/Toolkit";
|
||||
import { axios } from "./BaseAPI";
|
||||
import TextFormat from "../utils/TextFormat";
|
||||
|
||||
const getCaptchaAPI = () => axios.defaults.baseURL + "/captcha";
|
||||
|
||||
@@ -11,7 +12,7 @@ async function getTemplate(bizType: TemplateBizType, code: string): Promise<stri
|
||||
}
|
||||
|
||||
async function getSetting(key: string, args?: { [key: string]: any }): Promise<string> {
|
||||
return axios.get(`/setting/${key}?${Toolkit.toURLArgs(args)}`);
|
||||
return axios.get(`/setting/${key}?${TextFormat.urlArgs(args)}`);
|
||||
}
|
||||
|
||||
async function listSetting(keyMap: Map<string, object | undefined>): Promise<Map<string, string>> {
|
||||
|
||||
Reference in New Issue
Block a user