mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +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>
|