Vue warn]: Error in v-on handler: "ReferenceError: handleDataScope is not defined
如图:
Vue warn]: Error in v-on handler: "ReferenceError: handleDataScope is not defined
如图:
1、我想问下你的 @click="handleDataScope(scope.row)" 和 handleDataScope(row) 都在 user\index.vue 里面吗,[email protected]="handleDataScope(scope.row)"的页面没引入user\index.vue
2、是不是因为项目中没有使用transform-runtime将es6换成es5?
安装transform-runtime 试试
npm i babel-plugin-transform-runtime -D
配置:.babelrc
"plugins": [
"transform-runtime"
]