forked from natuka/web.puabadge.com
修改:提交获取是否已提交订单
This commit is contained in:
1 parent
e2afe86ea3
commit
a76b181650
4 files changed
+27
-34
No files matched your search
@@ -132,8 +132,6 @@ import ImagePointCloud from './components/ImagePointCloud.vue'
|
||||
import DyNavBar from './components/DyNavBar.vue'
|
||||
import { takePendingUpload } from './pendingUpload'
|
||||
|
||||
const SUBMITTED_KEY = 'douyin_order_submitted'
|
||||
|
||||
function isSubmittedBizError(msg: string) {
|
||||
return /已提交制作|不能继续上传|不能继续生图/.test(String(msg || ''))
|
||||
}
|
||||
@@ -404,7 +402,6 @@ async function beginPendingUpload() {
|
||||
errorTip.value = msg
|
||||
// 已提交制作:不停留等待页,标记锁定并回首页
|
||||
if (isSubmittedBizError(msg)) {
|
||||
sessionStorage.setItem(SUBMITTED_KEY, '1')
|
||||
showToast(msg)
|
||||
setTimeout(() => {
|
||||
router.replace(config.routes.home)
|
||||
@@ -442,7 +439,6 @@ async function confirmSubmit() {
|
||||
imageId.value = res.imageId
|
||||
sessionStorage.setItem('douyin_image_id', res.imageId)
|
||||
}
|
||||
sessionStorage.setItem(SUBMITTED_KEY, '1')
|
||||
showConfirmModal.value = false
|
||||
router.replace(config.routes.success)
|
||||
} catch (err: any) {
|
||||
|
||||
Reference in new issue
Block a user