소스 검색

:recycle: added error msg for unfound type in clearAllPosts

tags/0.9.0
J 4 년 전
부모
커밋
0b8e9267e6
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      vue-theme/src/pages/list.vue

+ 1
- 0
vue-theme/src/pages/list.vue 파일 보기

@@ -76,6 +76,7 @@ export default {
76 76
     },
77 77
     methods: {
78 78
         clearAllPosts() {
79
+            if(!this.type) return console.error(`type: ${type}...`)
79 80
             const uppercaseType = this.type.toUpperCase() + 'S'
80 81
             this.$store.commit(`CLEAR_${uppercaseType}`)
81 82
             this.$store.commit(`${uppercaseType}_LOADED`)

Loading…
취소
저장