使用:active-value="1" 而不是active-value="1"
<el-switch v-model="result":active-value="1" :inactive-value="0">
</el-switch>
使用:active-value="1" 而不是active-value="1"
<el-switch v-model="result":active-value="1" :inactive-value="0">
</el-switch>