mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix
This commit is contained in:
parent
579b9dc0c2
commit
fb1daa0e21
@ -41,7 +41,7 @@ export interface WebUiConfigType {
|
|||||||
token: string;
|
token: string;
|
||||||
loginRate: number
|
loginRate: number
|
||||||
}
|
}
|
||||||
async function WebUIConfig(): Promise<WebUiConfigType> {
|
async function GetWebUIConfig(): Promise<WebUiConfigType> {
|
||||||
try {
|
try {
|
||||||
let configPath = resolve(__dirname, "./config/webui.json");
|
let configPath = resolve(__dirname, "./config/webui.json");
|
||||||
let config: WebUiConfigType = {
|
let config: WebUiConfigType = {
|
||||||
@ -71,4 +71,4 @@ async function WebUIConfig(): Promise<WebUiConfigType> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 读取当前目录下名为 webui.json 的配置文件,如果不存在则创建初始化配置文件
|
// 读取当前目录下名为 webui.json 的配置文件,如果不存在则创建初始化配置文件
|
||||||
export const WebUiConfig = await WebUIConfig();
|
export const WebUiConfig = await GetWebUIConfig();
|
Loading…
x
Reference in New Issue
Block a user