fix: pk comment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user