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 041bd56 commit ed67d4b
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 @@ -68,16 +68,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 ed67d4b

Please sign in to comment.