bianjiang 10 miesięcy temu
rodzic
commit
f96573e783
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/dict/apis.ts

+ 1 - 1
src/dict/apis.ts

@@ -23,7 +23,7 @@ const Dict_Apis = {
 };
 function getPathname() {
   let pathname = location.pathname;
-  pathname = pathname.replace(/(\S+\/)\S+\.html/g, "$1");
+  pathname = pathname.replace(/(\S*\/)\S+\.html/g, "$1");
   return pathname;
 }