Skip to content

Commit 7216025

Browse files
committed
ui: correctly redirect after bulk deleting template zones
1 parent 0a0e216 commit 7216025

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

ui/src/views/image/TemplateZones.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,7 @@
139139
:pageSize="pageSize"
140140
:total="itemCount"
141141
:showTotal="total => `${$t('label.total')} ${total} ${$t('label.items')}`"
142-
:pageSizeOptions="[
143-
'10',
144-
'20',
145-
'40',
146-
'80',
147-
'100'
148-
]"
142+
:pageSizeOptions="['10', '20', '40', '80', '100']"
149143
@change="handleChangePage"
150144
@showSizeChange="handleChangePageSize"
151145
showSizeChanger>
@@ -225,7 +219,7 @@
225219
<exclamation-circle-outlined style="color: red; fontSize: 30px; display: inline-flex" />
226220
<span
227221
style="padding-left: 5px"
228-
v-html="'<b>' + selectedRowKeys.length + ' ' + $t('label.items.selected') + '. </b>'" />
222+
v-html="`<b>${selectedRowKeys.length} ` + $t('label.items.selected') + `. </b>`" />
229223
<span v-html="$t(message.confirmMessage)" />
230224
</template>
231225
</a-alert>
@@ -484,7 +478,7 @@ export default {
484478
this.showTable = false
485479
this.fetchData()
486480
if (this.dataSource.length === 0) {
487-
this.$router.go(-1)
481+
this.$router.push({ path: '/template' })
488482
}
489483
},
490484
getOkProps () {

0 commit comments

Comments
 (0)