mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
b4d81dc584
* lint: require await in async function * lint: replace "error" with 2 in config
15 lines
230 B
Vue
15 lines
230 B
Vue
<template>
|
|
<foobar>{{ $store.__id }}</foobar>
|
|
</template>
|
|
|
|
<script>
|
|
import { nextId } from '@/lib/db'
|
|
|
|
export default {
|
|
fetch({store}) {
|
|
// We use store just as a shared reference
|
|
store.__id = nextId()
|
|
}
|
|
}
|
|
</script>
|