提交 5244c00d 编写于 作者: KK's avatar KK

判断

上级 3f54a13a
...@@ -108,7 +108,7 @@ export default class MobEditViewEngine extends ViewEngine { ...@@ -108,7 +108,7 @@ export default class MobEditViewEngine extends ViewEngine {
let viewdata: any = this.view.model; let viewdata: any = this.view.model;
let index: number = viewdata.srfCaption.indexOf("-"); let index: number = viewdata.srfCaption.indexOf("-");
if (viewdata) { if (viewdata) {
if (!isCreate) { if (!isCreate && this.form) {
this.view.model.srfCaption = `${this.view.$t(viewdata.srfCaption)}-${this.form.data.srfmajortext}`; this.view.model.srfCaption = `${this.view.$t(viewdata.srfCaption)}-${this.form.data.srfmajortext}`;
this.view.initNavCaption(); this.view.initNavCaption();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册