当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
「敏捷建模」纪律:敏捷设计理念
Interviewer: Dao, in Service, the Controller, Util, divided into the Model?
Network Security Note 6 - Digital Certificates and Public Key Infrastructure
自动化测试及Selenium
【微服务架构】微服务与SOA架构(2)
使用cpolar远程连接群晖NAS(升级固定链接2)
chart.js水平柱状图插件
企业如何判断数据治理是否成功?
"Scalability" extensibility best practices: lessons from eBay
Payment x Aggregation x Ledger Separation - The Way to Avoid Risk of "Erqing" on the Return Platform
[Microservice Architecture] Microservices and SOA Architecture (2)
dedecms支持Word内容一键上传
2022.8.7-----leetcode.636
这些年我开源的几个小项目
ES关于文档的基本操作
【Azure云】服务端点和私有链接有什么区别?观点(1)
MongoDB database notes
「首席工程师」首席(Principal )工程师修炼之道
2022.8.8-----leetcode.761
JS高级 之 使用 Iterator - Generator
![[C language] Floating point number rounding](/img/ff/3f256deaa5ec82d692828c67cfb0fa.png)








