From bf2b97180e5af45e786a39ba741aaf4529621bdb Mon Sep 17 00:00:00 2001 From: zouhang Date: Wed, 30 Jun 2021 17:51:47 +0800 Subject: [PATCH] fix: remove useless path base for web resource --- src/client/theme-default/components/HomeHero.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/components/HomeHero.vue b/src/client/theme-default/components/HomeHero.vue index 9ff14a759cab..896c4910dd8c 100644 --- a/src/client/theme-default/components/HomeHero.vue +++ b/src/client/theme-default/components/HomeHero.vue @@ -17,6 +17,7 @@ const showHero = computed(() => { }) const heroText = computed(() => frontmatter.value.heroText || site.value.title) +const isWebResource = (path: string) => /^(https{0,1}\:){0,1}\/\//.test(path)