[plugin:vite:vue] [vue/compiler-sfc] Unexpected token (331:0) D:/迅雷下载/华测/gitee_d...
🚨 错误信息
[plugin:vite:vue] [vue/compiler-sfc] Unexpected token (331:0)
D:/迅雷下载/华测/gitee_depot/web-plat-form/platform-vue-web/src/views/webtest/webInfo/WebInfoForm.vue
461| const delVar = (index:number) => {
462| webInfo.params_data.splice(index, 1)
463| }
464| </script>
465|
D:/迅雷下载/华测/gitee_depot/web-plat-form/platform-vue-web/src/views/webtest/webInfo/WebInfoForm.vue:331:0
198| // 在你的 setup 方法中
199| ElMessageBox.confirm(
200| '新增用例后,才能新增用例步骤!请填写用例信息,点击保存。',
| ^
201| '提示',
202| {
at instantiate (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:63:32)
at constructor (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:358:12)
at TypeScriptParserMixin.raise (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:3255:19)
at TypeScriptParserMixin.unexpected (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:3285:16)
at TypeScriptParserMixin.parseExprAtom (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:11284:16)
at TypeScriptParserMixin.parseExprSubscripts (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:10890:23)
at TypeScriptParserMixin.parseUpdate (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:10873:21)
at TypeScriptParserMixin.parseMaybeUnary (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:10849:23)
at TypeScriptParserMixin.parseMaybeUnary (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-web\node_modules\@babel\parser\lib\index.js:9738:18)
at TypeScriptParserMixin.parseMaybeUnaryOrPrivate (D:\迅雷下载\华测\gitee_depot\web-plat-form\platform-vue-we
🤖 AI解决方案
[plugin:vite:vue] [vue/compiler-sfc] Unexpected token (331:0)D:/迅雷下载/华测/gitee_depot/web-plat-form/platform-vue-web/src/views/webtest/webInfo/WebInfoForm.vue
331| // 在你的 setup 方法中
332| ElMessageBox.confirm(
333| '新增用例后,才能新增用例步骤!请填写用例信息,点击保存。',
334| '提示',
335| {
错误翻译:
[plugin:vite:vue] [vue/compiler-sfc] 意外的令牌 (331:0)
``
原因分析:
在
.vue 文件中,