el-col是基于vue封装的组件,不支持原生事件的触发。

无效:

<el-col :span="4" @click="tagPlatform">
      <img class="image_icon" src="@/assets/images/labelTag.png" alt=""/>
      <div class="image_text">标签平台</div>
</el-col>

修改:

<el-col :span="4" @click.native="tagPlatform">
      <img class="image_icon" src="@/assets/images/labelTag.png" alt=""/>
      <div class="image_text">标签平台</div>
</el-col>

Logo

前往低代码交流专区

更多推荐