mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 09:00:31 +00:00
fix(nuxt): remove literal <script setup>
from comment (#6331)
This commit is contained in:
parent
f75d0dfd47
commit
fbe2459255
@ -21,7 +21,7 @@ export default defineComponent({
|
|||||||
export function createClientOnly (component) {
|
export function createClientOnly (component) {
|
||||||
const { setup, render: _render, template: _template } = component
|
const { setup, render: _render, template: _template } = component
|
||||||
if (_render) {
|
if (_render) {
|
||||||
// override the component render (non <script setup> component)
|
// override the component render (non script setup component)
|
||||||
component.render = (ctx, ...args) => {
|
component.render = (ctx, ...args) => {
|
||||||
return ctx.mounted$
|
return ctx.mounted$
|
||||||
? h(Fragment, null, [h(_render(ctx, ...args), ctx.$attrs ?? ctx._.attrs)])
|
? h(Fragment, null, [h(_render(ctx, ...args), ctx.$attrs ?? ctx._.attrs)])
|
||||||
|
Loading…
Reference in New Issue
Block a user