mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
* 更新Dockerfile构建文件,升级NodeJS依赖版本。 * 遵循ESLint重新格式化代码,修复部分警告 * 登录Token失效增加登出提示 * 网络请求问题增加错误错误提示 * 升级UI依赖库
13 lines
338 B
Go
13 lines
338 B
Go
// translate router.meta.title, be used in breadcrumb sidebar tagsview
|
|
export function generateTitle(title) {
|
|
const hasKey = this.$te('route.' + title)
|
|
|
|
if (hasKey) {
|
|
// $t :this method from vue-i18n, inject in @/lang/index.js
|
|
const translatedTitle = this.$t('route.' + title)
|
|
|
|
return translatedTitle
|
|
}
|
|
return title
|
|
}
|