Jelajahi Sumber

Add 'all' category

sbkwgh 8 tahun lalu
induk
melakukan
99a7fe311a
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/App.vue

+ 2 - 0
src/App.vue

@@ -307,6 +307,8 @@
 
 			this.axios.get('/api/v1/category')
 				.then(res => {
+					res.data.push({ name: 'All', value: 'ALL' })
+
 					this.$store.commit('addCategories', res.data)
 				}).catch(this.ajaxErrorHandler)
 		}