element ui报错this function will be executed on each...The template root requires exactly one element.
- 报错信息如下所示。
this function will be executed on each node when use filter method. if return 'false', tree node will be hidden.
[vue/no-multiple-template-root]
The template root requires exactly one element.
- 解决办法:在
<template>
标签下随便再加个标签,比如<span>
。