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>就是了

欢迎转载,请注明出处
原文地址:https://www.cnblogs.com/time1997/p/14304260.html