Nuxt/test/fixtures/fetch/pages/old-fetch.vue
renovate[bot] e934da3c36
chore(deps): update devdependency @nuxtjs/eslint-config to v5 (#8345)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-11-14 17:10:53 +00:00

19 lines
276 B
Vue

<template>
<div id="old-fetch">
oldFetchData: {{ $store.state.oldFetchData }}
</div>
</template>
<script>
export default {
data () {
return {
team: []
}
},
fetch ({ store, route }) {
store.commit('setOldFetchData', route.name)
}
}
</script>