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>
    在这里插入图片描述

posted on 2020-10-19 10:24  愤怒的苹果ext  阅读(35)  评论(0编辑  收藏  举报

导航