提交 21a80169 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 45e75c8e
......@@ -185,14 +185,11 @@ export default {
return this.hasComment && currentTime > endTime
},
disabled() {
if (!this.detail) {
return true
}
// -1未处理 0已处理 1驳回
if (this.detail.status === -1) {
if (this.detail && this.detail.status === -1) {
return false
}
return [0, 1].includes(this.detail.status) || this.isWorkTime
return [0, 1].includes(this.detail ? this.detail.status : null) || this.isWorkTime
}
},
methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论