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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.3.94",
4
+ "version": "1.3.95",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -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
- const parsed = JSON.parse(item.btnIcon)
241
- // 只有解析结果是数组才赋值
242
- if (Array.isArray(parsed)) {
243
- btnList.value = parsed
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
 
@@ -12,7 +12,7 @@ const router = useRouter()
12
12
  // const idKey = ref('o_id')
13
13
 
14
14
  // 简易crud表单测试
15
- const configName = ref('ceshiCRUD')
15
+ const configName = ref('temporarySecurityCheckCRUD')
16
16
  const serviceName = ref('af-safecheck')
17
17
 
18
18
  // 资源权限测试