error Parsing error: Unexpected reserved word ‘await‘.

reason:

The await keyword is only valid in async function. If you use await outside the async function, you will only get a syntax error.

Modified code

 this.$refs.formRef.validate(async (varlid) => {
        if (!varlid) return
        const result = await this.$http.post('login', this.loginForm)
        console.log(result)

Read More: