diff --git a/src/components/bg-menu.vue b/src/components/bg-menu.vue index 3057622dc4843fca4028bf0c246b079151a25066..33ddadaa87d0e5197ed1df87b0b0ae2a2854aa70 100644 --- a/src/components/bg-menu.vue +++ b/src/components/bg-menu.vue @@ -82,7 +82,8 @@ export default { }, transparentBg() { return ( - this.documentScrollTop < 180 && (this.$route.name === "shopRecommend" || this.$route.name === "shopSearch") + this.documentScrollTop < 180 && + (this.$route.name === "shopRecommend" || this.$route.name === "shopSearch") ); }, isFront() { diff --git a/src/page/login/index.vue b/src/page/login/index.vue index c9b955886d23521a0fba65b824f9c584fe58e862..be395f0d664bd8a9eb9d157fc2e523a87dc75da8 100644 --- a/src/page/login/index.vue +++ b/src/page/login/index.vue @@ -3,17 +3,26 @@ class="login-container" :style="{ 'background-image': `url(${ - configOptions.backgroundUrl ? JSON.parse(configOptions.backgroundUrl)[0].url : getImageUrl('bg.png') + configOptions.backgroundUrl + ? JSON.parse(configOptions.backgroundUrl)[0].url + : getImageUrl('bg.png') })`, }"> - +
-