mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-18 03:35:17 +00:00
16 lines
227 B
Vue
16 lines
227 B
Vue
<template>
|
|
<div>
|
|
<h1>{{ baz }}</h1>
|
|
<br>
|
|
<p>{{ $store.state.counter }}</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
|
|
export default {
|
|
computed: mapGetters('foo/bar', ['baz'])
|
|
}
|
|
</script>
|