feat(data-process): 完善后台生成与失败重试
This commit is contained in:
@@ -13,6 +13,15 @@ const showBackButton = computed(() => {
|
||||
return route.path.split('/').filter(Boolean).length > 1
|
||||
})
|
||||
|
||||
function handleBack() {
|
||||
const backRouteName = route.meta.backRouteName
|
||||
if (typeof backRouteName === 'string' && backRouteName) {
|
||||
void router.push({ name: backRouteName })
|
||||
return
|
||||
}
|
||||
router.back()
|
||||
}
|
||||
|
||||
function usageClass(val?: number) {
|
||||
return val != null && val > 80 ? 'is-danger' : ''
|
||||
}
|
||||
@@ -51,7 +60,7 @@ onUnmounted(() => {
|
||||
v-if="showBackButton"
|
||||
class="back-btn"
|
||||
link
|
||||
@click="router.back()"
|
||||
@click="handleBack"
|
||||
>
|
||||
<div class="back-icon-wrap">
|
||||
<i class="fa fa-arrow-left" />
|
||||
|
||||
Reference in New Issue
Block a user