Skip to content

Commit

Permalink
feat: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed May 21, 2024
1 parent cda76c1 commit 9f006c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,12 @@ export default defineComponent({
};
const watchDemoUrl = (router: RouteLocationNormalized) => {
data.demoUrl = `${demoUrl}/${router.path
data.demoUrl = `${demoUrl}#/${router.path
.toLocaleLowerCase()
.split("/")
.pop()}?lang=${localStorage.getItem("language")}`;
};
const isReact = (router: RouteLocationNormalized) => {
return router.path.indexOf("react") > -1;
};
onMounted(async () => {
componentTitle();
watchDemoUrl(route);
Expand Down

0 comments on commit 9f006c8

Please sign in to comment.