1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 07:04:21 +08:00

bugfix load data in tab childs after save record (#409)

Co-authored-by: erp <erp@erp.erp>
This commit is contained in:
Leonel Matos 2020-03-16 19:11:52 -04:00 committed by GitHub
parent 9dbf57a877
commit 83081b6d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ export default {
}, },
watch: { watch: {
'$route.query.tabChild'(actionValue) { '$route.query.tabChild'(actionValue) {
if (this.isEmptyValue(actionValue) || actionValue === 'create-new') { if (this.isEmptyValue(actionValue)) {
this.currentTabChild = '0' this.currentTabChild = '0'
return return
} }
@ -93,6 +93,9 @@ export default {
}, },
mounted() { mounted() {
this.setCurrentTabChild() this.setCurrentTabChild()
if (this.isReadyFromGetData) {
this.getDataTable()
}
}, },
methods: { methods: {
setCurrentTabChild() { setCurrentTabChild() {