diff --git a/src/views/ManufacturingCenter/ProcessingStatus/index.vue b/src/views/ManufacturingCenter/ProcessingStatus/index.vue index b425a0a5..da00be87 100644 --- a/src/views/ManufacturingCenter/ProcessingStatus/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatus/index.vue @@ -451,13 +451,18 @@ export default { value2: response.data[i].项目名称 }) } - }).then(() => { - this.Machine = parseInt(Cookie.get('machineValue')) - this.getGroup() - this.Group = parseInt(Cookie.get('group')) - this.getTableData() - Cookie.remove('machineValue') - Cookie.remove('group') + if (Cookie.get('group') !== undefined) { + this.Machine = parseInt(Cookie.get('machineValue')) + this.getGroup() + this.Group = parseInt(Cookie.get('group')) + this.getTableData() + Cookie.remove('machineValue') + Cookie.remove('group') + } else { + this.getTableData() + Cookie.remove('machineValue') + Cookie.remove('group') + } }) } else { this.Machine = ''