Jelajahi Sumber

change: 移除layout logo. 改用fake header.

peter 7 bulan lalu
induk
melakukan
6c71f0712b
1 mengubah file dengan 1 tambahan dan 15 penghapusan
  1. 1 15
      layouts/default.vue

+ 1 - 15
layouts/default.vue

@@ -1,11 +1,6 @@
 <template>
   <div class="com-body">
-    <div style="margin-bottom: 56px">
-      <img
-        style="max-width: 100%; max-height: 100%; opacity: 0"
-        :src="`${websitelogo}`"
-        alt="Logo-2" />
-    </div>
+    <pc-header style="opacity: 0; position: static !important"></pc-header>
     <pc-header></pc-header>
     <nuxt />
     <pc-footer></pc-footer>
@@ -21,15 +16,6 @@ export default {
       websitelogo: '',
     }
   },
-  async fetch() {
-    await this.$store.dispatch('getShopInfo', 'layout').then(res => {
-      console.log(res.logo, 'layout logo log')
-      this.websitelogo = !this.$mediaRegExp.test(res.logo)
-        ? this.$OSS_PREFIX +
-          (/^\/.+/.test(res.logo) ? res.logo : `/${res.logo}`)
-        : res.logo
-    })
-  },
   mounted() {
     // this.openZoho()
     // 添加监听