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