fix(web): fix issue of tags component flickering when fisrt paint night theme bookshelf

This commit is contained in:
Xwite committed 2024-10-03 09:20:40 +08:00
1 parent f048952d73
commit caeb54e213
5 files changed
+43 -40

No files matched your search

+3 -2
View File
@@ -36,7 +36,7 @@ const testLeagdoHttpUrlConnection = async (http_url) => {
})
// 返回结果应该是JSON 并有键值isSuccess
try {
if ("isSuccess" in data) return
if ("isSuccess" in data) return data.data
throw new Error("ReadConfig后端返回格式错误" )
} catch {
throw new Error("ReadConfig后端返回格式错误" )
@@ -58,7 +58,8 @@ ajax.interceptors.response.use((response) => response, APIExceptionHandler);
// 书架API
// Http
const getReadConfig = () => ajax.get("/getReadConfig");
/** @returns {Promise<import("axios").AxiosResponse<{isSuccess: boolean, data: string, errorMsg:string}>>} */
const getReadConfig = () => ajax.get("/getReadConfig", {timeout: 3000});
const saveReadConfig = (config) => ajax.post("/saveReadConfig", config);
const saveBookProgress = (bookProgress) =>