TypeScript + vue 2.0 uses this.$refs.xxx.post to report errors

after looking for a solution on the Internet for a long time, I want to use the custom upload of iview, use this.$refs.upload.post to report an error, and print this.$refs.upload on the console with post. Please give me a solution. Thank you
clipboard.png

clipboard.png

clipboard.png

.
Mar.13,2021

should be able to write like this:

this.$refs.upload as HTMLElement).post

the editor doesn't know what your upload is. Add a sentence

to it.
// @ts-ignore

the editor doesn't know what your upload is. Add a sentence

to it.

/ / @ ts-ignore

Menu