【docs】:Code example 'setup' is missing (#7153)
* flx * flx【docs】:Modify the official website code example, switch TS to JS, the top of the example should be '<script setup>'feat-4.1
parent
562623c091
commit
07c36192b8
|
@ -86,7 +86,7 @@ ${vueCode?.trim()}
|
|||
const scriptContent = fetchCode(vueCode, 'scriptContent');
|
||||
let jsCode = (await tsToJs(scriptContent))?.trim();
|
||||
jsCode = jsCode
|
||||
? `<script>
|
||||
? `<script setup>
|
||||
${jsCode}
|
||||
</script>`
|
||||
: '';
|
||||
|
|
Loading…
Reference in New Issue