Closed huan5678 closed 7 months ago
特性:精煉 UI 流程並優化資料獲取
CommentModal.vue
inject
watchEffect
defineProps
appRef
poll.js
LoginView.vue
/admin
/
PollView.vue
createdBy
VoteContent.vue
CommentView.vue
The latest updates on your projects. Learn more about Vercel for Git ↗︎
特性:精煉 UI 流程並優化資料獲取
CommentModal.vue
中新增inject
和watchEffect
導入,並移除defineProps
。appRef
實現應用程式高度和溢出的動態樣式,此動態樣式基於模態框狀態。poll.js
更新篩選條件時,移除自動獲取投票資料首頁的機制。LoginView.vue
成功登入後,重新導向至/admin
而非/
。PollView.vue
獲取投票之前清除createdBy
篩選條件。VoteContent.vue
發布評論後獲取評論數據。CommentView.vue
中根據投票 ID 去除重複評論。