Share common component & filter data
This commit is contained in:
22
pages/php/index.vue
Normal file
22
pages/php/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template lang="pug">
|
||||
CategoryPage(:resources="resources")
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CategoryPage from '../../components/CategoryPage'
|
||||
import store from '../../store.json'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
resources: store.find(x => x.title.toLowerCase() === 'php')
|
||||
}
|
||||
},
|
||||
components: {
|
||||
CategoryPage
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user