mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
b4d81dc584
* lint: require await in async function * lint: replace "error" with 2 in config
16 lines
183 B
Vue
16 lines
183 B
Vue
<template>
|
|
<foobar>{{ id }}</foobar>
|
|
</template>
|
|
|
|
<script>
|
|
import { nextId } from '@/lib/db'
|
|
|
|
export default {
|
|
asyncData() {
|
|
return {
|
|
id: nextId()
|
|
}
|
|
}
|
|
}
|
|
</script>
|