Commit a1da6bbf by lijiabin

【需求 25171】 fix: 限制不能给自己视频打赏

parent 5a7a1fa7
...@@ -552,6 +552,11 @@ const handleCollect = async (item: ArticleItemDto) => { ...@@ -552,6 +552,11 @@ const handleCollect = async (item: ArticleItemDto) => {
// 打赏 // 打赏
const handleReward = () => { const handleReward = () => {
// 自己发布的内容只提示,不进入打赏流程。
if (isVideoAuthor.value) {
return push.warning('不能给自己的视频打赏')
}
rewardDialogRef.value?.open(videoDetail.value.id) rewardDialogRef.value?.open(videoDetail.value.id)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment