feat: update

This commit is contained in:
yanghao05
2025-04-18 22:41:51 +08:00
parent 8afed63142
commit 6ca359ec1e
3 changed files with 11 additions and 43 deletions

View File

@@ -80,12 +80,6 @@ const navigateToEditPost = (post) => {
router.push(`/posts/edit/${post.id}`);
};
// View post details
const viewPost = (post) => {
// In a real app, this would navigate to a post detail page
toast.add({ severity: 'info', summary: '查看', detail: `查看文章: ${post.title}`, life: 3000 });
};
// Delete post
const confirmDelete = (post) => {
confirm.require({
@@ -295,9 +289,6 @@ const handleSendConfirm = async () => {
}
};
const formatUserLabel = (user) => {
return `${user.nickname} (${user.phone})`;
};
</script>
<template>