转载:https://www.jianshu.com/p/ea4471c9f333

@click

错误写法

@click="dialogStatus=='create'?createData:updateData"

正确写法

@click="dialogStatus=='create'?createData():updateData()"

类 class

 <button :class="[isCanSubmitOrder==true ?'submitOrder':'noSubmitOrder']" formType="submit" type="default" size="mini">提交订单</button>

———————————

@click使用实例: