Skip to content

Commit

Permalink
Merge pull request #9 from gz65555/feat/github-page
Browse files Browse the repository at this point in the history
feat: add benchmark
  • Loading branch information
gz65555 authored May 15, 2024
2 parents 3589dc1 + 41879a3 commit 2cac4c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ import(`./mpa/${platform}/.demoList.json`).then(({ default: demoList }) => {
return;
}

iframe.src = "/mpa" + "/" + platform + "/" + labelSrc + ".html";
const prefix =
window.location.href.indexOf("/benchmark/") > -1 ? "/benchmark" : "";

iframe.src = prefix + "/mpa/" + platform + "/" + labelSrc + ".html";

items.forEach(({ itemDOM }) => {
const itemPath = `mpa/${platform}/${itemDOM.title}`;
Expand Down

0 comments on commit 2cac4c3

Please sign in to comment.