速度速度

This commit is contained in:
何童崇 2021-09-03 21:51:53 +08:00
parent 657bfbc6df
commit 1764fbdb88
2 changed files with 7 additions and 1 deletions

View File

@ -142,7 +142,7 @@ const WikiEdit = Loadable({
function checkPathname(projectsId, owner, pathname) {
let name = "";
if (pathname && pathname !== `/${owner}/${projectsId}`) {
let url = pathname.split(`/${owner}/${projectsId}`)[1];
let url = pathname.split(`/${owner}/${projectsId}`)[1] || '';
if (url.indexOf("/about") > -1) {
name = "about"
} else if (url.indexOf("/issues") > -1 || url.indexOf("Milepost") > 0) {

View File

@ -0,0 +1,6 @@
import Detail from "./Detail";
import { SnackbarHOC } from "educoder";
import { CNotificationHOC } from "../../modules/courses/common/CNotificationHOC";
import { TPMIndexHOC } from "../../modules/tpm/TPMIndexHOC";
export default CNotificationHOC()(SnackbarHOC()(TPMIndexHOC(Detail)));