mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-04 06:07:56 +01:00
docs(ComponentTheme): prevent async data override on generate
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import json5 from 'json5'
|
import json5 from 'json5'
|
||||||
import { camelCase } from 'scule'
|
import { camelCase } from 'scule'
|
||||||
|
import { hash } from 'ohash'
|
||||||
import * as theme from '#build/ui'
|
import * as theme from '#build/ui'
|
||||||
import * as themePro from '#build/ui-pro'
|
import * as themePro from '#build/ui-pro'
|
||||||
|
|
||||||
@@ -77,7 +78,7 @@ const component = computed(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const { data: ast } = await useAsyncData(`component-theme-${name}`, async () => {
|
const { data: ast } = await useAsyncData(`component-theme-${name}-${hash({ props })}`, async () => {
|
||||||
const md = `
|
const md = `
|
||||||
::code-collapse{class="nuxt-only"}
|
::code-collapse{class="nuxt-only"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user