Commit 2bbf6a42 authored by rockyl's avatar rockyl

修复修改meta刷新问题

parent 07ecf566
......@@ -285,7 +285,7 @@
if (key.startsWith('pn_')) {
const processNode = this.$refs[key][0];
if (processNode.meta.id === metaID) {
if (processNode && processNode.meta.id === metaID) {
this.onProcessMetaModified(processNode.data, processNode.meta);
processNode.updateSize();
processNode.updateDockPointPos();
......
......@@ -35,6 +35,7 @@
</div>
<div slot="footer" class="dialog-footer">
<div class="button-bar">
<el-button size="mini" plain @click="printMeta">PrintMeta</el-button>
<el-button size="mini" plain @click="cancel">Cancel</el-button>
<el-button size="mini" plain @click="save">Save</el-button>
</div>
......@@ -101,7 +102,10 @@
},
cancel() {
this.visible = false;
}
},
printMeta() {
console.log(JSON.stringify(this.meta));
},
}
}
</script>
......
......@@ -5,7 +5,8 @@
:show-close="false"
>
<div class="project-details-dialog">
<el-form @submit.native.prevent ref="form" :model="options" size="mini" label-position="right" label-width="150px">
<el-form @submit.native.prevent ref="form" :model="options" size="mini" label-position="right"
label-width="150px">
<el-form-item prop="pageTitle" :label="$t('Page title')">
<el-input v-model="options.pageTitle"/>
</el-form-item>
......@@ -61,7 +62,7 @@
</template>
<script>
import {mapState, mapGetters} from 'vuex';
import {mapState, mapGetters, mapMutations} from 'vuex';
import {RENDERER_TYPES, SCALE_MODES} from "../../../utils";
export default {
......@@ -91,10 +92,14 @@
},
onConfirm() {
this.visible = false;
this.modifyProject();
},
onOpen() {
},
...mapMutations([
'modifyProject',
]),
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment