fix(oa): refresh draft list after submit instead of opening detail
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
6b0fb7b128
commit
47d7a1421a
1 file changed
+1
-9
@@ -291,18 +291,10 @@
|
||||
if (!ok) return
|
||||
this.submittingId = row.id
|
||||
try {
|
||||
const data = await fetchSubmitOaInstanceDraft(row.id)
|
||||
await fetchSubmitOaInstanceDraft(row.id)
|
||||
uni.showToast({ title: '已提交', icon: 'success' })
|
||||
await this.loadList(true)
|
||||
this.refreshDraftCount()
|
||||
if (data && data.id) {
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/oa/webview/index?instanceId=' +
|
||||
encodeURIComponent(data.id) +
|
||||
'&mode=view'
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: (e && e.message) || '提交失败,请完善后重试',
|
||||
|
||||
Reference in new issue
Block a user