规则详情返回空值处理
This commit is contained in:
parent
b0461baca0
commit
b0a93298cb
@ -72,7 +72,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getData() {
|
getData() {
|
||||||
getContextScoreDetail(this.$route.query.id).then(resp => {
|
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('初始化数据失败!'); });
|
}).catch(() => { this.$message.error('初始化数据失败!'); });
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
|
Loading…
Reference in New Issue
Block a user