审核
All checks were successful
Deploy to Server / deploy (push) Successful in 39s

This commit is contained in:
jeremygan2021
2026-02-27 14:44:04 +08:00
parent a58fc40e10
commit 93ad681689
7 changed files with 68 additions and 11 deletions

View File

@@ -105,12 +105,18 @@ const CreateTopic = () => {
})
Taro.showToast({ title: '更新成功', icon: 'success' })
} else {
await createTopic({
const res = await createTopic({
title,
content,
category: categories[categoryIndex].key
})
Taro.showToast({ title: '发布成功', icon: 'success' })
const topic = res.data || res
if (topic.status === 'pending') {
Taro.showToast({ title: '已提交,等待审核', icon: 'none', duration: 2000 })
} else {
Taro.showToast({ title: '发布成功', icon: 'success' })
}
}
setTimeout(() => {