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:
parent
82dec26729
commit
3c7d3e2669
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user