提交 299e8280 编写于 作者: Cano1997's avatar Cano1997

update: 多语言优化

上级 8c05ec3d
......@@ -23,7 +23,7 @@
if(this.$route && this.$route.meta){
this.$route.meta.info = this.model.dataInfo;
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.$t(this.model.dataInfo)}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.model.dataInfo}` });</#noparse>
}
})
}
......
......@@ -26,7 +26,7 @@ this.$forceUpdate();
if(this.$route && this.$route.meta){
this.$route.meta.info = this.model.dataInfo;
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.$t(this.model.dataInfo)}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.model.dataInfo}` });</#noparse>
}
})
}
......
......@@ -36,7 +36,7 @@ this.$forceUpdate();
if(this.$route && this.$route.meta){
this.$route.meta.info = this.model.dataInfo;
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.$t(this.model.dataInfo)}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.model.dataInfo}` });</#noparse>
}
})
}
......
......@@ -36,7 +36,7 @@ this.$forceUpdate();
if(this.$route && this.$route.meta){
this.$route.meta.info = this.model.dataInfo;
}
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.$t(this.model.dataInfo)}` });</#noparse>
<#noparse>Object.assign(this.model, { srfCaption: `${this.model.srfCaption} - ${this.model.dataInfo}` });</#noparse>
}
})
}
......
......@@ -939,7 +939,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
if (this.$route && this.$route.meta) {
this.$route.meta.info = info;
}
<#noparse>this.model.srfCaption = `${this.model.srfCaption}-${this.$t(this.model.dataInfo)}`;</#noparse>
<#noparse>this.model.srfCaption = `${this.model.srfCaption}-${this.model.dataInfo}`;</#noparse>
this.initNavDataWithRoute(null,isNew);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册