[skip ci] web: 重构章节内容及其进度

This commit is contained in:
Xwite committed 2023-05-12 21:05:53 +08:00
1 parent ecf93801f9
commit cd0f20c4cf
5 files changed
+183 -167

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { ElMessage } from "element-plus/es";
/** https://github.com/gedoor/legado/tree/master/app/src/main/java/io/legado/app/api */
/** https://github.com/gedoor/legado/tree/master/app/src/main/java/io/legado/app/web */
const { hostname, port } = new URL(import.meta.env.VITE_API || location.href);
const { hostname, port } = new URL(import.meta.env.VITE_API || location.origin);
const isSourecEditor = /source/i.test(location.href);
const APIExceptionHandler = (error) => {