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.

翻译:模板应该只负责将状态映射到UI。避免在模板中放置带有副作用的标签,例如<script>,因为它们不会被解析

 

 

原因:是你在使用<template></template>模板的附近代码有个<div>没有闭合</div>,仔细找找补上</div>就是了

posted @ 2021-01-20 18:01  星期7  阅读(4674)  评论(0编辑  收藏  举报