Comments (3)
[Vue warn]: Unhandled error during execution of component event handler
at <ElButton type="danger" plain="" icon="Delete" ... >
at <ElCol span=1.5 >
at <ElRow gutter=10 class="mb8" >
at <Auth onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > key="/yjjs/auth" >
at <KeepAlive include= ['Auth'] >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at <Transition name="fade-transform" mode="out-in" >
at <RouterView>
at <AppMain>
at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > >
at <RouterView>
at <App>
warn2 @ runtime-core.esm-bundler.js:6620
logError @ runtime-core.esm-bundler.js:6794
handleError @ runtime-core.esm-bundler.js:6786
callWithErrorHandling @ runtime-core.esm-bundler.js:6740
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:6746
emit$1 @ runtime-core.esm-bundler.js:289
(anonymous) @ runtime-core.esm-bundler.js:6522
handleClick @ button.vue:142
createElementBlock.onClick._cache.<computed>._cache.<computed> @ button.vue?vue&type=template&id=802c5c76&lang.js:20
callWithErrorHandling @ runtime-core.esm-bundler.js:6737
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:6746
invoker @ runtime-dom.esm-bundler.js:357
runtime-core.esm-bundler.js:6620 [Vue warn]: Unhandled error during execution of native event handler
at <ElButton type="danger" plain="" icon="Delete" ... >
at <ElCol span=1.5 >
at <ElRow gutter=10 class="mb8" >
at <Auth onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > key="/yjjs/auth" >
at <KeepAlive include= ['Auth'] >
at <BaseTransition mode="out-in" appear=false persisted=false ... >
at <Transition name="fade-transform" mode="out-in" >
at <RouterView>
at <AppMain>
at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {__v_skip: true} > >
at <RouterView>
at <App>
warn2 @ runtime-core.esm-bundler.js:6620
logError @ runtime-core.esm-bundler.js:6794
handleError @ runtime-core.esm-bundler.js:6786
callWithErrorHandling @ runtime-core.esm-bundler.js:6740
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:6746
invoker @ runtime-dom.esm-bundler.js:357
runtime-core.esm-bundler.js:6800 Uncaught ReferenceError: Cannot access 'ids' before initialization
at handleDelete (index.vue?t=1645256663863:321:25)
at callWithErrorHandling (runtime-core.esm-bundler.js:6737:22)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:6746:21)
at emit$1 (runtime-core.esm-bundler.js:289:9)
at runtime-core.esm-bundler.js:6522:53
at Proxy.handleClick (button.vue:142:7)
at createElementBlock.onClick._cache.<computed>._cache.<computed> (button.vue?vue&type=template&id=802c5c76&lang.js:20:13)
at callWithErrorHandling (runtime-core.esm-bundler.js:6737:22)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:6746:21)
at HTMLButtonElement.invoker (runtime-dom.esm-bundler.js:357:13)
handleDelete @ index.vue?t=1645256663863:321
callWithErrorHandling @ runtime-core.esm-bundler.js:6737
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:6746
emit$1 @ runtime-core.esm-bundler.js:289
(anonymous) @ runtime-core.esm-bundler.js:6522
handleClick @ button.vue:142
createElementBlock.onClick._cache.<computed>._cache.<computed> @ button.vue?vue&type=template&id=802c5c76&lang.js:20
callWithErrorHandling @ runtime-core.esm-bundler.js:6737
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:6746
invoker @ runtime-dom.esm-bundler.js:357
from ruoyi-vue3.
请提供出能复现问题的详细步骤和示例代码。
from ruoyi-vue3.
应该是列表页面批量删除的方法ids取值的bug,在代码生成vue3的页面里有
/** 删除按钮操作 */
function handleDelete(row) {
const ids = row.id || ids.value;
proxy.$modal.confirm('是否确认删除用户车辆信息编号为"' + ids + '"的数据项?').then(function() {
return delCar(ids);
}).then(() => {
getList();
proxy.$modal.msgSuccess("删除成功");
}).catch(() => {});
}
会报错 Cannot access 'ids' before initialization
RuoYi-Vue的仓库里已有这个issue,传送门:
https://gitee.com/y_project/RuoYi-Vue/issues/I5A1WN
from ruoyi-vue3.
Related Issues (20)
- 为什么我在vscode打开若依,代码无法实现跳转,但是其他vue3项目都可以 HOT 1
- 若依vue3后台首页 /index 为什么创建过一次后就不创建了 也不会被销毁 HOT 2
- 定时任务调度日志重复请求后台 HOT 1
- 接口异常500呀,验证码刷不出来 HOT 2
- path重复时404的bug HOT 3
- 页面切换不刷新 HOT 5
- 工作流 HOT 1
- element-plus HOT 1
- 按钮在点击后除非点击页面,不然总是灰色的? HOT 2
- 定时任务-cron表达式配置
- 此版本的系统接口swagger带了8080端口号 HOT 1
- 功能缺少 HOT 2
- 后续计划集成eslint吗 HOT 1
- 求助一下这个项目的node 版本 HOT 2
- [Bug]: 移动端界面时,左侧菜单无法显示 HOT 3
- 使用Arco Design Vue前端代替element ui 计划 HOT 2
- 建议依赖更新更新 HOT 1
- 列表页权限按钮问题 HOT 1
- 是否支持ruoyi-cloud3.6.4版本 HOT 1
- 为什么表单构建功能无法使用?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruoyi-vue3.