html:
<el-button ref="inputResult" @click="inputResult"></el-button>
js:
this.$nextTick(() => {
this.$refs.inputResult.click()
})
error log:
Vue warn]: Error in nextTick: "TypeError: _this.$refs.inputResult.click is not a function"
how to trigger the click time of el-button through js?