fix: pk comment

This commit is contained in:
zzc
2026-06-15 23:14:05 +08:00
parent 88f4220432
commit b79e1e8204
5 changed files with 823 additions and 8 deletions

View File

@@ -148,11 +148,6 @@ import { onUnmounted } from "vue";
import CommentItem from "@/components/CommentItem/CommentItem.vue";
import { useUserStore } from "@/stores/user";
const defaultTabs = [
{ label: "最热", value: "hot" },
{ label: "最新", value: "new" },
];
const props = defineProps({
requestKey: {
type: String,
@@ -176,7 +171,10 @@ const props = defineProps({
},
tabs: {
type: Array,
default: () => defaultTabs,
default: () => [
{ label: "最热", value: "hot" },
{ label: "最新", value: "new" },
],
},
allowCompose: {
type: Boolean,
@@ -320,7 +318,7 @@ const emit = defineEmits(["need-login", "published"]);
const userStore = useUserStore();
const comments = ref([]);
const currentTab = ref(defaultTabs[0].value);
const currentTab = ref("hot");
const currentPage = ref(1);
const hasMore = ref(true);
const loading = ref(false);