Commit 1170dd56 by 李伟康

fix(dailyNewspaper): 修复数据类型判断逻辑

- 修改了值类型检查条件,支持字符串和数字类型
- 确保数字类型的值能够正确赋值给item.value
- 保持原有对象类型值的处理逻辑不变
1 parent bf837444
...@@ -377,7 +377,7 @@ export default { ...@@ -377,7 +377,7 @@ export default {
const key = item.key const key = item.key
const val = c[e.key]?.[key] const val = c[e.key]?.[key]
if (typeof val === 'string') { if (['string','number'].includes(typeof val)) {
item.value = val item.value = val
} else if (val) { } else if (val) {
item.value = val.text item.value = val.text
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!