From a040a82fd87090aa457f9ada91d294bddebcc116 Mon Sep 17 00:00:00 2001 From: shenhan000 Date: Tue, 29 Apr 2025 10:27:49 +0800 Subject: [PATCH] update --- app/components.d.ts | 1 + app/components/CreatePlanet.vue | 2 +- app/components/EditPlanet.vue | 6 ++-- app/components/PlanetBaseInfo.vue | 4 +-- app/components/planet-item.vue | 16 +++++----- app/pages/planet-detail/index.vue | 40 ++++++++++++++++++++++-- app/pages/planetMember/index.vue | 4 +-- app/pages/public-planet-detail/index.vue | 32 ++++++++++++++----- 8 files changed, 78 insertions(+), 27 deletions(-) diff --git a/app/components.d.ts b/app/components.d.ts index b49aa02..06b16cc 100644 --- a/app/components.d.ts +++ b/app/components.d.ts @@ -16,6 +16,7 @@ declare module 'vue' { NCheckbox: typeof import('naive-ui')['NCheckbox'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDatePicker: typeof import('naive-ui')['NDatePicker'] + NDivider: typeof import('naive-ui')['NDivider'] NDropdown: typeof import('naive-ui')['NDropdown'] NEllipsis: typeof import('naive-ui')['NEllipsis'] NEmpty: typeof import('naive-ui')['NEmpty'] diff --git a/app/components/CreatePlanet.vue b/app/components/CreatePlanet.vue index 19c99af..a7e94bb 100644 --- a/app/components/CreatePlanet.vue +++ b/app/components/CreatePlanet.vue @@ -249,7 +249,7 @@ async function handlePictureChange(event: Event) { placeholder="请输入加入费用" > diff --git a/app/components/EditPlanet.vue b/app/components/EditPlanet.vue index d17638e..7c416d1 100644 --- a/app/components/EditPlanet.vue +++ b/app/components/EditPlanet.vue @@ -78,8 +78,8 @@ async function getCommunityDetail() { formValue.value = { imageUrl, communityName, - communityTag: communityTag.toString(), - type: type.toString(), + communityTag: communityTag?.toString() || '', + type: type?.toString() || '', price, id, validityDay, @@ -274,7 +274,7 @@ async function handlePictureChange(event: Event) { placeholder="请输入加入费用" > diff --git a/app/components/PlanetBaseInfo.vue b/app/components/PlanetBaseInfo.vue index 890e41a..cdb2b73 100644 --- a/app/components/PlanetBaseInfo.vue +++ b/app/components/PlanetBaseInfo.vue @@ -122,7 +122,7 @@ watchEffect(() => {