当前位置:网站首页>runtime-core.esm-bundler.js?d2dd:218 Uncaught TypeError: formRef.value?.validate is not a function
runtime-core.esm-bundler.js?d2dd:218 Uncaught TypeError: formRef.value?.validate is not a function
2022-08-10 10:53:00 【to be a woman of light】
1.vue3 uses the elemetPlus component. When writing the form verification, when the verification method is also logged in the setup, we get the component object, but when calling the attribute method of the component object, it is found that the method printed on the console is invalid.Written on the Internet to find many solutions have not been resolved.Most of the online solutions are vue2 use solutions.
Later, I found a big guy in the circle of friends and solved it after a long time of research.
Solution:
1. There is a function in vue, use this function to expose the login verification method
We wrote this before: console printing does not have this property and method,
The solution code is as follows:
Conjecture may be the reason why elementplus is only compatible with script setup.
边栏推荐
- 2022.8.7-----leetcode.636
- 交换 生成树 知识总结
- Redis (three) - detailed configuration file, publish and subscribe, new data types
- Situation丨The intrusion of hackers intensifies, and the shooting range sets up a "defense shield" for network security
- ECCV 2022 | 视频理解新框架X-CLIP:仅用微调的成本,达到预训练的全能
- Summary of whitespace, space and escape characters in C language
- VBA: 遍历文件抓取指定条件的数据
- Taro小程序跨端开发入门实战
- 用.bat文件做Airtest脚本的多设备批量运行
- database transaction
猜你喜欢
随机推荐
VBA: Inputbox Function and Inputbox Method
js猜拳小游戏源码
跨公网环境,路由策略,进行设备的访问
String interception function in SQL
The usage and difference between getParameter() and getAttribute()
EasyCVR级联时,修改下级平台名称将不同步至上级平台
交换 生成树 知识总结
"MySQL Advanced Chapter" 6. Principles of index creation and design
Swin Transformer作者曹越加入智源,开展视觉基础模型研究
「数据架构」数据模型,数据字典,数据库模式 和ERD的比较
【C语言】浮点数四舍五入
2022.8.8-----leetcode.761
MySQL 执行查询流程
"Data Strategy" Results-Driven Enterprise Data Strategy: Organization and Governance
杭电多校七 1008-Triangle Game(博弈)
Introduction to cross-end development of Taro applet
VBA: 遍历文件抓取指定条件的数据
Thrift -- 跨语言RPC 框架
Dialogue with Chen Ciliang: Nezha wants to popularize high-end products
owl.carousel海报卡片Slider轮播切换