mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-12 22:29:59 +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:
parent
0405066f60
commit
f4cc107f2b
@ -170,7 +170,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getOldRouteOfWindow() {
|
getOldRouteOfWindow() {
|
||||||
if (this.panelType === 'window') {
|
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') {
|
if (!this.isEmptyValue(oldRoute.query.action) && oldRoute.query.action !== 'create-new' && this.$route.query.action === 'create-new') {
|
||||||
return oldRoute
|
return oldRoute
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
|||||||
return this.$store.state['process/index'].metadata
|
return this.$store.state['process/index'].metadata
|
||||||
},
|
},
|
||||||
windowRecordSelected() {
|
windowRecordSelected() {
|
||||||
return this.$store.state.window.recordSelected
|
return this.$store.state['windowControl/index'].recordSelected
|
||||||
},
|
},
|
||||||
getterDataRecordsAndSelection() {
|
getterDataRecordsAndSelection() {
|
||||||
return this.$store.getters.getDataRecordAndSelection(this.containerUuid)
|
return this.$store.getters.getDataRecordAndSelection(this.containerUuid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user