wxsms / vue-md-loader

:sparkles: Markdown files to ALIVE Vue components.
https://vue-md-loader.wxsm.space
MIT License
118 stars 56 forks source link

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. #383

Closed Gilbert5210 closed 2 years ago

Gilbert5210 commented 2 years ago

当我在md文件上写vue代码的时候,发现他会报错 我的写法:

index.md

## test
<template></template>
<script></script>

错误: Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as Githubissues.

  • Githubissues is a development platform for aggregating issues.