Vue3+ts
使用类型说明就报错:列如:num:number=1,去掉number就能正常运行
https://blog.csdn.net/weixin_38883338/article/details/102536777
eslint 告诉你 这些基本数据不需要定义类型吧,这个需要去改eslint 检测文件的内容了。你试试写个引用型再给它定义类型,应该就没问题了