Kaynağa Gözat

Merge branch 'master' of https://gitee.com/sheepjs/shopro-uniapp

ldh 2 yıl önce
ebeveyn
işleme
8219926b80
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      pages/index/index.vue

+ 2 - 2
pages/index/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view>
+  <view v-if="template">
     <s-layout
       title="首页"
       navbar="custom"
@@ -26,7 +26,7 @@
   // 隐藏原生tabBar
   uni.hideTabBar();
 
-  const template = computed(() => sheep.$store('app').template.home);
+  const template = computed(() => sheep.$store('app').template?.home);
 
   onLoad((options) => {
     // #ifdef MP