当前位置:网站首页>error Parsing error: Unexpected reserved word ‘await‘.
error Parsing error: Unexpected reserved word ‘await‘.
2022-06-25 16:08:00 【. calin.】

reason :
await Keywords only in async function Effective in . If in async function The function uses await , You will only get one grammatical error .
The modified code
this.$refs.formRef.validate(async (varlid) => {
if (!varlid) return
const result = await this.$http.post('login', this.loginForm)
console.log(result)
边栏推荐
- Dino: Detr with improved detecting anchor boxes for end to end object detection
- Deep learning pytorch cifar10 dataset training "suggestions collection"
- Lifeifei's team applied vit to the robot, increased the maximum speed of planning reasoning by 512 times, and also cued hekaiming's MAE
- 普通人的2022春招总结(阿里、腾讯offer)
- Rapport de la main - d'oeuvre du Conseil de développement de l'aecg air32f103cbt6
- JS add custom attributes to elements
- Popular cross domain
- Most commonly used SQL statements
- Vscode有什么好用的插件?
- JS中的==和===的区别(详解)
猜你喜欢

Alvaria宣布客户体验行业资深人士Jeff Cotten担任新首席执行官
Client development (electron) system level API usage 2

Go language - what is critical resource security?
Classic deadlock scenario of multithreading and its solution (philosopher dining problem)

Educational administration system development (php+mysql)

Detailed explanation of IVX low code platform series -- Overview (I)

Interviewer: your resume says you are proficient in mysql, so you say cluster / Union / overlay index, table return, index push down

合宙Air32F103CBT6开发板上手报告
Power representation in go language

Describe your understanding of the evolution process and internal structure of the method area
随机推荐
数据存储和传输文件之XML使用和解析详解
Desktop development (Tauri) opens the first chapter
B站付费视频使up主掉粉过万
What is OA
[problem solving] dialogfragment can not be attached to a container view
Report on Hezhou air32f103cbt6 development board
说下你对方法区演变过程和内部结构的理解
Optimization of lazyagg query rewriting in parsing data warehouse
Write one file to the marked location of another file
[golang] leetcode intermediate - find the first and last position of an element in a sorted array & Merge interval
10 Super VIM plug-ins, I can't put them down
Super comprehensive custom deep copy function
AspNetCore&云效Flow持续集成
分享自己平时使用的socket多客户端通信的代码技术点和软件使用
基于神经标签搜索,中科院&微软亚研零样本多语言抽取式摘要入选ACL 2022
What can one line of code do?
Several ways of SQL optimization
Golang uses Mongo driver operation - increase (Advanced)
不要小看了积分商城,它的作用可以很大!
Alvaria宣布客户体验行业资深人士Jeff Cotten担任新首席执行官