1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

fix: Error window control state is undefined. (#613)

* fix: Window control state undefined.

* remove console log.

Co-authored-by: EdwinBetanc0urt <EdwinBetanco0urt@outlook.com>

Great catch. Very fine
This commit is contained in:
Edwin Betancourt 2021-02-28 14:48:04 -04:00 committed by GitHub
parent 0405066f60
commit f4cc107f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ export default {
},
getOldRouteOfWindow() {
if (this.panelType === 'window') {
const oldRoute = this.$store.state.window.windowOldRoute
const oldRoute = this.$store.state['windowControl/index'].windowOldRoute
if (!this.isEmptyValue(oldRoute.query.action) && oldRoute.query.action !== 'create-new' && this.$route.query.action === 'create-new') {
return oldRoute
}

View File

@ -96,7 +96,7 @@ export default {
return this.$store.state['process/index'].metadata
},
windowRecordSelected() {
return this.$store.state.window.recordSelected
return this.$store.state['windowControl/index'].recordSelected
},
getterDataRecordsAndSelection() {
return this.$store.getters.getDataRecordAndSelection(this.containerUuid)