提交 36733cab 编写于 作者: RedPig97's avatar RedPig97

update:多语言更新

上级 76f687c0
...@@ -147,8 +147,8 @@ export default class Breadcrumb extends Vue { ...@@ -147,8 +147,8 @@ export default class Breadcrumb extends Vue {
public getCaption(meta: any): any { public getCaption(meta: any): any {
const caption = meta.captionLanResTag ? this.$t(meta.captionLanResTag, meta.caption) : meta.caption; const caption = meta.captionLanResTag ? this.$t(meta.captionLanResTag, meta.caption) : meta.caption;
return meta.info && !Object.is(meta.info, "") return meta.info && !Object.is(meta.info, "")
? `${this.$t(caption)} - ${this.$t(meta.info)}` ? `${caption} - ${meta.info}`
: this.$t(caption); : caption;
} }
/** /**
......
...@@ -41,12 +41,7 @@ ...@@ -41,12 +41,7 @@
   
<span> <span>
<template v-if="detail.isShowCaption"> <template v-if="detail.isShowCaption">
<template v-if="uiActionGroup.langbase && !Object.is(uiActionGroup.langbase, '') && detail.uiactiontag && !Object.is(detail.uiactiontag, '')"> {{ getCaption(detail) }}
{{$t(`${uiActionGroup.langbase}.uiactions.${detail.uiactiontag}`)}}
</template>
<template v-if="!(uiActionGroup.langbase && !Object.is(uiActionGroup.langbase, '') && detail.uiactiontag && !Object.is(detail.uiactiontag, ''))">
{{detail.caption}}
</template>
</template> </template>
</span> </span>
</span> </span>
......
...@@ -205,7 +205,7 @@ export default class EditViewEngine extends ViewEngine { ...@@ -205,7 +205,7 @@ export default class EditViewEngine extends ViewEngine {
if(this.view.$route){ if(this.view.$route){
this.view.$route.meta.info = info; this.view.$route.meta.info = info;
} }
this.view.model.srfCaption = `${this.view.$t(viewdata.srfCaption)}-${this.view.$t(viewdata.dataInfo)}`; this.view.model.srfCaption = `${viewdata.srfCaption}-${viewdata.dataInfo}`;
this.view.initNavDataWithRoute(null,isNew); this.view.initNavDataWithRoute(null,isNew);
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册