mirror of https://github.com/YunYouJun/valaxy
fix: tObject data is null judge object, close #588
This commit is contained in:
parent
86321e6971
commit
2259edb091
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"typedoc": "^0.28.7",
|
||||
"typedoc-plugin-markdown": "^4.7.0",
|
||||
"typedoc-plugin-markdown": "^4.7.1",
|
||||
"typedoc-vitepress-theme": "^1.1.2",
|
||||
"vitepress": "^1.6.3"
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
"vite-plugin-vue-devtools": "^7.7.7",
|
||||
"vite-plugin-vue-layouts": "^0.11.0",
|
||||
"vite-ssg": "^28.0.0",
|
||||
"vite-ssg-sitemap": "^0.9.0",
|
||||
"vite-ssg-sitemap": "^0.10.0",
|
||||
"vitepress-plugin-group-icons": "^1.6.1",
|
||||
"vue": "catalog:frontend",
|
||||
"vue-i18n": "catalog:build",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* ```
|
||||
*/
|
||||
export function tObject<T = string>(data: string | Record<string, T>, lang: string): T | string {
|
||||
if (typeof data === 'object') {
|
||||
if (data && typeof data === 'object') {
|
||||
return data[lang] || Object.values(data)[0] || ''
|
||||
}
|
||||
return data
|
||||
|
|
|
@ -10,8 +10,8 @@ catalogs:
|
|||
specifier: ^1.2.5
|
||||
version: 1.2.5
|
||||
'@iconify-json/carbon':
|
||||
specifier: ^1.2.10
|
||||
version: 1.2.10
|
||||
specifier: ^1.2.11
|
||||
version: 1.2.11
|
||||
'@iconify-json/logos':
|
||||
specifier: ^1.2.4
|
||||
version: 1.2.4
|
||||
|
@ -19,8 +19,8 @@ catalogs:
|
|||
specifier: ^1.2.5
|
||||
version: 1.2.5
|
||||
'@iconify-json/simple-icons':
|
||||
specifier: ^1.2.43
|
||||
version: 1.2.43
|
||||
specifier: ^1.2.44
|
||||
version: 1.2.44
|
||||
'@iconify-json/vscode-icons':
|
||||
specifier: ^1.2.23
|
||||
version: 1.2.23
|
||||
|
@ -206,11 +206,11 @@ importers:
|
|||
specifier: ^0.28.7
|
||||
version: 0.28.7(typescript@5.8.3)
|
||||
typedoc-plugin-markdown:
|
||||
specifier: ^4.7.0
|
||||
version: 4.7.0(typedoc@0.28.7(typescript@5.8.3))
|
||||
specifier: ^4.7.1
|
||||
version: 4.7.1(typedoc@0.28.7(typescript@5.8.3))
|
||||
typedoc-vitepress-theme:
|
||||
specifier: ^1.1.2
|
||||
version: 1.1.2(typedoc-plugin-markdown@4.7.0(typedoc@0.28.7(typescript@5.8.3)))
|
||||
version: 1.1.2(typedoc-plugin-markdown@4.7.1(typedoc@0.28.7(typescript@5.8.3)))
|
||||
vitepress:
|
||||
specifier: ^1.6.3
|
||||
version: 1.6.3(@algolia/client-search@5.32.0)(@types/node@24.0.15)(axios@1.10.0)(fuse.js@7.1.0)(jiti@2.4.2)(nprogress@0.2.0)(postcss@8.5.6)(qrcode@1.5.4)(sass@1.89.2)(search-insights@2.17.3)(terser@5.43.1)(tsx@4.20.3)(typescript@5.8.3)(yaml@2.8.0)
|
||||
|
@ -235,7 +235,7 @@ importers:
|
|||
version: 1.2.5
|
||||
'@iconify-json/simple-icons':
|
||||
specifier: catalog:build
|
||||
version: 1.2.43
|
||||
version: 1.2.44
|
||||
|
||||
demo/yun:
|
||||
dependencies:
|
||||
|
@ -275,7 +275,7 @@ importers:
|
|||
devDependencies:
|
||||
'@iconify-json/carbon':
|
||||
specifier: catalog:build
|
||||
version: 1.2.10
|
||||
version: 1.2.11
|
||||
nodemon:
|
||||
specifier: ^3.1.10
|
||||
version: 3.1.10
|
||||
|
@ -300,10 +300,10 @@ importers:
|
|||
devDependencies:
|
||||
'@iconify-json/carbon':
|
||||
specifier: catalog:build
|
||||
version: 1.2.10
|
||||
version: 1.2.11
|
||||
'@iconify-json/simple-icons':
|
||||
specifier: catalog:build
|
||||
version: 1.2.43
|
||||
version: 1.2.44
|
||||
nodemon:
|
||||
specifier: ^3.1.10
|
||||
version: 3.1.10
|
||||
|
@ -636,8 +636,8 @@ importers:
|
|||
specifier: ^28.0.0
|
||||
version: 28.0.0(beasties@0.3.5)(unhead@2.0.12)(vite@7.0.5(@types/node@24.0.15)(jiti@2.4.2)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))(vue-router@4.5.1(vue@3.5.17(typescript@5.8.3)))(vue@3.5.17(typescript@5.8.3))
|
||||
vite-ssg-sitemap:
|
||||
specifier: ^0.9.0
|
||||
version: 0.9.0
|
||||
specifier: ^0.10.0
|
||||
version: 0.10.0
|
||||
vitepress-plugin-group-icons:
|
||||
specifier: ^1.6.1
|
||||
version: 1.6.1(markdown-it@14.1.0)(vite@7.0.5(@types/node@24.0.15)(jiti@2.4.2)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))
|
||||
|
@ -814,7 +814,7 @@ importers:
|
|||
version: 1.2.5
|
||||
'@iconify-json/simple-icons':
|
||||
specifier: catalog:build
|
||||
version: 1.2.43
|
||||
version: 1.2.44
|
||||
'@vueuse/motion':
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3(vue@3.5.17(typescript@5.8.3))
|
||||
|
@ -1550,8 +1550,8 @@ packages:
|
|||
'@iconify-json/ant-design@1.2.5':
|
||||
resolution: {integrity: sha512-SYxhrx1AFq2MBcXk77AERYz2mPhLQes1F0vtvG64+dJZWyge9studXo7MiR8PPeLjRjZdWRrReRbxiwdRMf70Q==}
|
||||
|
||||
'@iconify-json/carbon@1.2.10':
|
||||
resolution: {integrity: sha512-Z+psKjwGZ9wZu+mVOStmIqHux1OWc8AtDiJ4eHmOkbcW5SMoGVtsQ6LWGJcYguT+9q9YgGihUTvHEnQSPWKGiQ==}
|
||||
'@iconify-json/carbon@1.2.11':
|
||||
resolution: {integrity: sha512-fWcoR0V4dLGLsgUvgjioBcTmj+l8NlMMEP/aMMUwR9PWAr5mCBg52rsTe/bvOnL1zj9PUCNxaj2M4H27GrnO3g==}
|
||||
|
||||
'@iconify-json/logos@1.2.4':
|
||||
resolution: {integrity: sha512-XC4If5D/hbaZvUkTV8iaZuGlQCyG6CNOlaAaJaGa13V5QMYwYjgtKk3vPP8wz3wtTVNVEVk3LRx1fOJz+YnSMw==}
|
||||
|
@ -1565,6 +1565,9 @@ packages:
|
|||
'@iconify-json/simple-icons@1.2.43':
|
||||
resolution: {integrity: sha512-JERgKGFRfZdyjGyTvVBVW5rftahy9tNUX+P+0QUnbaAEWvEMexXHE9863YVMVrIRhoj/HybGsibg8ZWieo/NDg==}
|
||||
|
||||
'@iconify-json/simple-icons@1.2.44':
|
||||
resolution: {integrity: sha512-CdWgSPygwDlDbKtDWjvi3NtUefnkoepXv90n3dQxJerqzD9kI+nEJOiWUBM+eOyMYQKtxBpLWFBrgeotF0IZKw==}
|
||||
|
||||
'@iconify-json/vscode-icons@1.2.23':
|
||||
resolution: {integrity: sha512-gFTcKecKra2/b5SbGDgHGI/l8CuikHyBPmqGlK+YCmS8AK72dtDQbUekdoACsju/3TYS37QvdPoOQwnyx2LdYg==}
|
||||
|
||||
|
@ -7065,8 +7068,8 @@ packages:
|
|||
resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
typedoc-plugin-markdown@4.7.0:
|
||||
resolution: {integrity: sha512-PitbnAps2vpcqK2gargKoiFXLWFttvwUbyns/E6zGIFG5Gz8ZQJGttHnYR9csOlcSjB/uyjd8tnoayrtsXG17w==}
|
||||
typedoc-plugin-markdown@4.7.1:
|
||||
resolution: {integrity: sha512-HN/fHLm2S6MD4HX8txfB4eWvVBzX/mEYy5U5s1KTAdh3E5uX5/lilswqTzZlPTT6fNZInAboAdFGpbAuBKnE4A==}
|
||||
engines: {node: '>= 18'}
|
||||
peerDependencies:
|
||||
typedoc: 0.28.x
|
||||
|
@ -7315,8 +7318,8 @@ packages:
|
|||
vue: ^3.2.4
|
||||
vue-router: ^4.0.11
|
||||
|
||||
vite-ssg-sitemap@0.9.0:
|
||||
resolution: {integrity: sha512-C5XCa+oPET2w/re92L9o7je4LMsKJDOC/TI6klo0xAi72nlgQKa7rt9cOYMZxgAsAJUhk+c6RYPTRc73xvn1vw==}
|
||||
vite-ssg-sitemap@0.10.0:
|
||||
resolution: {integrity: sha512-OIja4fqUMcvWl5+bxQARe3LgzWTd8U/dWHWgrqiC7vv3AmTn0YnhMNUAimQ0M/0Aa9myEIAGLV0yKlYbKP8BJQ==}
|
||||
|
||||
vite-ssg@28.0.0:
|
||||
resolution: {integrity: sha512-idYdFXRi1XdiE4fd1g6n/NIpGn6KzMX4Lzrq2Ynr+j2FTd0UMuBlMJh6Z4kB6ux4lBonTOU2tTV2hhL/ubQ/1w==}
|
||||
|
@ -8454,7 +8457,7 @@ snapshots:
|
|||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
||||
'@iconify-json/carbon@1.2.10':
|
||||
'@iconify-json/carbon@1.2.11':
|
||||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
||||
|
@ -8474,6 +8477,10 @@ snapshots:
|
|||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
||||
'@iconify-json/simple-icons@1.2.44':
|
||||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
||||
'@iconify-json/vscode-icons@1.2.23':
|
||||
dependencies:
|
||||
'@iconify/types': 2.0.0
|
||||
|
@ -14842,13 +14849,13 @@ snapshots:
|
|||
possible-typed-array-names: 1.1.0
|
||||
reflect.getprototypeof: 1.0.10
|
||||
|
||||
typedoc-plugin-markdown@4.7.0(typedoc@0.28.7(typescript@5.8.3)):
|
||||
typedoc-plugin-markdown@4.7.1(typedoc@0.28.7(typescript@5.8.3)):
|
||||
dependencies:
|
||||
typedoc: 0.28.7(typescript@5.8.3)
|
||||
|
||||
typedoc-vitepress-theme@1.1.2(typedoc-plugin-markdown@4.7.0(typedoc@0.28.7(typescript@5.8.3))):
|
||||
typedoc-vitepress-theme@1.1.2(typedoc-plugin-markdown@4.7.1(typedoc@0.28.7(typescript@5.8.3))):
|
||||
dependencies:
|
||||
typedoc-plugin-markdown: 4.7.0(typedoc@0.28.7(typescript@5.8.3))
|
||||
typedoc-plugin-markdown: 4.7.1(typedoc@0.28.7(typescript@5.8.3))
|
||||
|
||||
typedoc@0.28.7(typescript@5.8.3):
|
||||
dependencies:
|
||||
|
@ -15241,7 +15248,7 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
vite-ssg-sitemap@0.9.0: {}
|
||||
vite-ssg-sitemap@0.10.0: {}
|
||||
|
||||
vite-ssg@28.0.0(beasties@0.3.5)(unhead@2.0.12)(vite@7.0.5(@types/node@24.0.15)(jiti@2.4.2)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))(vue-router@4.5.1(vue@3.5.17(typescript@5.8.3)))(vue@3.5.17(typescript@5.8.3)):
|
||||
dependencies:
|
||||
|
|
|
@ -10,10 +10,10 @@ packages:
|
|||
catalogs:
|
||||
build:
|
||||
'@iconify-json/ant-design': ^1.2.5
|
||||
'@iconify-json/carbon': ^1.2.10
|
||||
'@iconify-json/carbon': ^1.2.11
|
||||
'@iconify-json/logos': ^1.2.4
|
||||
'@iconify-json/ri': ^1.2.5
|
||||
'@iconify-json/simple-icons': ^1.2.43
|
||||
'@iconify-json/simple-icons': ^1.2.44
|
||||
'@iconify-json/vscode-icons': ^1.2.23
|
||||
'@unhead/addons': ^2.0.12
|
||||
'@unhead/schema-org': ^2.0.12
|
||||
|
|
Loading…
Reference in New Issue