chore: code style

This commit is contained in:
zqran 2023-06-18 21:26:19 +08:00
parent 401ee32342
commit 1c14795646
1 changed files with 5 additions and 4 deletions

View File

@ -271,10 +271,11 @@ export function compileScript(
!withDefaultsVariables[id.name].needHoist
) {
ctx.error(
`\`${method}()\` in <script setup> cannot reference locally declared variables ` +
`because it will be hoisted outside of the setup() function. ` +
`If your component options require initialization in the module scope, ` +
`use a separate normal <script> to export the options instead.`,
`\`${method}()\` in <script setup> cannot reference locally ` +
`declared variables because it will be hoisted outside of the ` +
`setup() function. If your component options require initialization ` +
`in the module scope, use a separate normal <script> to export ` +
`the options instead.`,
id
)
}