admin管理员组

文章数量:1633030

vue 报错:Templates should only be responsible for mapping the state to the UI. Avoid placing tags with

  • 场景
  • 解决办法

场景

今天使用vue写后台管理系统时,控制台一直报错:Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

解决办法

百度一番后,发现问题是因为:Html结构部分缺少div标签闭合,然后仔细查看代码后发现确实是缺少了一个</div>,补充上之后,问题解决。

本文标签: 报错responsiblemappingvueTemplates