添加二次确认

This commit is contained in:
fan 2024-03-01 14:45:15 +08:00
parent c1376ddf8f
commit 01b95a3fd4

View File

@ -170,10 +170,22 @@ export default {
this.$refs.scoreRule.doShow(this.nowData.ruleId);
},
goBack() {
this.$router.push('/contest/list');
this.$confirm('是否确认返回,返回将放弃改模块测试?', this.$t('tip.hint'), {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push('/contest/list');
}).catch(() => {});
},
submit() {
this.$router.push('/contest/scoringSettlement');
this.$confirm('是否确认提交?', this.$t('tip.hint'), {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push('/contest/scoringSettlement');
}).catch(() => {});
}
}
};