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
·
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>
,补充上之后,问题解决。
更多推荐
已为社区贡献49条内容
所有评论(0)