Commit 9d41c0e9 by 李伟康

Merge branch 'feature/584/lwk' into 'SAAS+V5.8.4'

fix(step-one): 修复上架类型切换时表单字段重置逻辑

See merge request !871
2 parents 7935bf6c 1d4c273f
......@@ -222,8 +222,10 @@ export default {
deep: true,
},
'infoForm.shelfType': {
handler(val) {
handler(val, oldVal) {
console.log(val)
// 仅在用户真正切换上架类型时执行重置,避免 immediate 和程序赋值时误清空
if (oldVal === undefined) return
if (val == 2) {
this.infoForm.merchantId = ''
this.infoForm.merchantName = ''
......@@ -231,7 +233,6 @@ export default {
this.infoForm.baseSceneCode = []
},
immediate: true,
deep: true,
}
},
computed: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!