规则详情返回空值处理

This commit is contained in:
fan 2024-02-26 15:38:50 +08:00
parent b0461baca0
commit b0a93298cb

View File

@ -72,7 +72,7 @@ export default {
methods: {
getData() {
getContextScoreDetail(this.$route.query.id).then(resp => {
this.tableData = resp.data.rule.units;
this.tableData = resp.data.rule ? resp.data.rule.units : [];
}).catch(() => { this.$message.error('初始化数据失败!'); });
},
goBack() {