This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user