提交 8dcd8b7d 编写于 作者: Cano1997's avatar Cano1997

update:视图标题多语言

上级 2c11563e
......@@ -227,13 +227,13 @@ export default class TabPageExp extends Vue {
* @param {*} caption
* @memberof TabPageExp
*/
public setCurPageCaption(caption: string, title: any, info: string) {
if (this.$route.meta && !Object.is(this.$t(this.$route.meta.caption), caption)) {
public setCurPageCaption(caption: string, info: string) {
if (this.$route.meta && !Object.is(this.$route.meta.caption, caption)) {
return;
}
this.$store.commit("setCurPageCaption", {
route: this.$route,
caption: title,
caption: caption,
info: info
});
setTimeout(() => {
......
......@@ -200,7 +200,7 @@ export default class EditViewEngine extends ViewEngine {
}
// 解决表格视图标题问题
if(this.view.$tabPageExp && this.view.viewDefaultUsage){
this.view.$tabPageExp.setCurPageCaption(this.view.$t(viewdata.srfCaption), viewdata.srfCaption, info);
this.view.$tabPageExp.setCurPageCaption(viewdata.srfCaption, info);
}
if(this.view.$route){
this.view.$route.meta.info = info;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册