@vitejs/plugin-vue-jsx 不支持装饰器语法,所以换成@vitejs/plugin-vue-jsx插件,不需要任何配置就可以了

This commit is contained in:
编码猿
2025-09-19 13:12:17 +08:00
parent b3718c4097
commit 32d40e1fa3
4 changed files with 41 additions and 49 deletions

View File

@@ -1,5 +1,4 @@
// import './assets/main.css'
import '@abraham/reflection'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App'

View File

@@ -53,7 +53,7 @@ export default class Home extends Vue {
item: (val: ListItemType) => <li key={ val.id }>{ val.title }</li>
} }
</Header>
{ this.testHtml }
{ this.testHtml() }
</div>
)
}