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

This commit is contained in:
Xwite
2023-05-12 21:05:53 +08:00
parent ecf93801f9
commit cd0f20c4cf
5 changed files with 183 additions and 167 deletions
+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) => {