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(() => {