<el-form-item label=":" class="coupon-short" prop="cpName" :inline-message="true" ref="cpName">
<el-input v-if="form.cpType !== 2" placeholder="" v-model="form.cpName" :maxlength="20"></el-input>
<template v-else>
<span>{{form.cpName}}</span>
<el-button type="text" @click="openChooseGood("chooseGood", form.checkedGood)"></el-button>
</template>
</el-form-item>
prop= "cpName" this check can check illegal characters
now you want to implement v-else without verifying this illegal character
how to implement