浏览代码

fixed heroku deploy error

김보경 5 年之前
父节点
当前提交
1f7bb251f1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pages/index.vue
  2. 1 1
      store/hero.js

+ 1 - 1
pages/index.vue

@@ -75,7 +75,7 @@ export default {
       // }
       // }
       courses : state => state.course.items,
       courses : state => state.course.items,
       featuredBlogs: state => state.blog.items.featured,
       featuredBlogs: state => state.blog.items.featured,
-      courseHero: state => state.hero.item
+      courseHero: state => state.hero.item || {}
     })
     })
   },
   },
   async fetch({store}) {
   async fetch({store}) {

+ 1 - 1
store/hero.js

@@ -1,5 +1,5 @@
 export const state = () => ({
 export const state = () => ({
-  item: null
+  item: {}
 })
 })