/* * @Description: * @Autor: renchao * @LastEditTime: 2023-08-30 13:51:05 */ export default { watch: { 'ruleForm.sldy.gyfs': { handler: function (val, oldVal) { if (val == '0' && this.ruleForm.qlrList.length > 1 && oldVal) { this.ruleForm.sldy.gyfs = oldVal this.$message({ message: '单独所有只能选择一个,请先删除再切换', type: 'warning' }) } }, immediate: true } } }