diff --git a/src/assets/images/en-white.png b/src/assets/images/en-white.png new file mode 100644 index 0000000..e649f07 Binary files /dev/null and b/src/assets/images/en-white.png differ diff --git a/src/assets/images/en.png b/src/assets/images/en.png new file mode 100644 index 0000000..d834c3e Binary files /dev/null and b/src/assets/images/en.png differ diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index 013bbb3..d560cbc 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -7,7 +7,7 @@ v-if="i != data.length - 1" :key="i" :to="{ path: item.path || '/column', query: item.query }"> - {{ item.name }} + {{ item.name | i18nName($i18n)}} ',name) + console.log('type=>',type) + switch (name) { + case '专利': + return type.t('column.patent') + case '专著': + return type.t('column.monograph') + case '论文': + return type.t('column.paper') + case '科学研究': + return type.t('column.scientificResearch') + + default: + break; + } } + } };