1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

fix open window (#908)

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-06-10 16:15:57 -04:00 committed by GitHub
parent 82dec26729
commit 3c7d3e2669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,7 +337,7 @@ export default {
return currentRecord
},
isDocumentTab() {
const panel = this.$store.getters.getPanel(this.windowMetadata.currentTabUuid)
const panel = this.isEmptyValue(this.windowMetadata.currentTabUuid) ? '' : this.$store.getters.getPanel(this.windowMetadata.currentTabUuid)
if (!this.isEmptyValue(panel)) {
return panel.isDocument
}
@ -345,7 +345,7 @@ export default {
return this.windowMetadata.firstTab.isDocument
},
isWorkflowBarStatus() {
const panel = this.$store.getters.getPanel(this.windowMetadata.currentTabUuid)
const panel = this.isEmptyValue(this.windowMetadata.currentTabUuid) ? '' : this.$store.getters.getPanel(this.windowMetadata.currentTabUuid)
if (!this.isEmptyValue(panel) && this.isDocumentTab && !this.isNewRecord) {
return true
}