Eslint reported an error

  120:26  error    "v-on" directives don"t support the modifier "sync"  vue/valid-v-on
:
  <el-button size="small" style="margin-left: 0px" type="primary"
                         @click.sync="submitQuery">
  </el-button>

the reason for this is that sync can be changed in both directions, but vue 2.0 no longer supports it, so how can I change it to achieve the same effect? How should I modify it?

Apr.02,2021

@ click.sync change to @ click
attach


read the error error message first

Menu