PMCORE-2528

This commit is contained in:
Henry Jordan
2020-12-09 16:22:30 +00:00
parent 7a188c6061
commit 2975d64007
6 changed files with 75 additions and 15 deletions

View File

@@ -15,7 +15,7 @@
@click="collapsed = true"
/>
<component v-bind:is="page"></component>
<component v-bind:is="page" ref="component"></component>
</div>
</div>
</template>
@@ -72,10 +72,11 @@ export default {
/**
* Update page component
*/
updatePage(data) {
if (data.component == "ModalNewRequest") {
this.data = data.page;
this.dataCase = data.dataCase;
updatePage(data, page, callback) {
this.dataCase = data;
this.page = page;
if (this.$refs["component"] && this.$refs["component"].update) {
this.$refs["component"].update(data, callback);
}
},
onResize() {