diff --git a/app/components/planet-item.vue b/app/components/planet-item.vue
index c83a51b..dd7f585 100644
--- a/app/components/planet-item.vue
+++ b/app/components/planet-item.vue
@@ -36,14 +36,14 @@ const showEditPlanet = ref(false)
const menuItems = computed(() => {
const items = [
- {
- label: '分享星球',
- action: () => {
- const url = window.location.href
- navigator.clipboard.writeText(url)
- message.success('链接已复制到剪贴板')
- },
- },
+ // {
+ // label: '分享星球',
+ // action: () => {
+ // const url = window.location.href
+ // navigator.clipboard.writeText(url)
+ // message.success('链接已复制到剪贴板')
+ // },
+ // },
{
label: '退出星球',
action: async () => {
diff --git a/app/pages/planet-detail/index.vue b/app/pages/planet-detail/index.vue
index c849526..515fe32 100644
--- a/app/pages/planet-detail/index.vue
+++ b/app/pages/planet-detail/index.vue
@@ -28,6 +28,7 @@ const typeList = ref([
value: 999,
},
])
+
const showPublishModal = ref(false)
const publishListParams = ref({
@@ -74,6 +75,38 @@ function closePublishModal() {
PublishComponentKey.value++
})
}
+
+onMounted(() => {
+ const state = history.state
+ if (state && state.communityId && state.tenantId) {
+ publishListParams.value = {
+ communityId: state.communityId,
+ tenantId: state.tenantId,
+ publishId: state.id,
+ type: null,
+ pageNum: 1,
+ pageSize: 10,
+ }
+
+ questionParams.value = {
+ communityId: state.communityId,
+ tenantId: state.tenantId,
+ pageNum: 1,
+ pageSize: 10,
+ }
+ }
+ else {
+ // 如果没有 state,回退到 URL 参数
+ publishListParams.value = {
+ communityId: route.query.communityId as string,
+ tenantId: route.query.tenantId as string,
+ publishId: route.query.id as string,
+ type: null,
+ pageNum: 1,
+ pageSize: 10,
+ }
+ }
+})
@@ -139,7 +172,7 @@ function closePublishModal() {
diff --git a/app/pages/planetMember/index.vue b/app/pages/planetMember/index.vue
index 3f4ca0f..10025f7 100644
--- a/app/pages/planetMember/index.vue
+++ b/app/pages/planetMember/index.vue
@@ -210,9 +210,9 @@ function copyToClipboard(text: string) {