af-mobile-client-vue3 1.3.94 → 1.3.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -235,18 +235,18 @@ function initComponent() {
|
|
|
235
235
|
|
|
236
236
|
if (item.mobileColumnType === 'mobile_header_column') {
|
|
237
237
|
try {
|
|
238
|
-
// 只有在 item.btnIcon 是字符串时才尝试解析
|
|
239
238
|
if (typeof item.btnIcon === 'string') {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
239
|
+
// 字符串 => 直接作为数组的一项
|
|
240
|
+
btnList.value = [item.btnIcon]
|
|
241
|
+
}
|
|
242
|
+
else if (Array.isArray(item.btnIcon)) {
|
|
243
|
+
// 已经是数组 => 直接赋值
|
|
244
|
+
btnList.value = item.btnIcon
|
|
245
245
|
}
|
|
246
|
+
// 其他类型不处理
|
|
246
247
|
}
|
|
247
248
|
catch (e) {
|
|
248
|
-
|
|
249
|
-
console.error('btnIcon JSON 解析失败:', e)
|
|
249
|
+
console.error('btnIcon 处理异常:', e)
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|