diff --git a/src/i18n/lang/en-us.ts b/src/i18n/lang/en-us.ts index f343636..dd2b295 100644 --- a/src/i18n/lang/en-us.ts +++ b/src/i18n/lang/en-us.ts @@ -13,5 +13,6 @@ export const lang = { introduction: 'A rapid development vue3 of mobile terminal template', home: { support: 'support', + cssMultiLanguage: 'CSS picture multi-language', }, }; diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index 63404a3..424b5c2 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -13,5 +13,6 @@ export const lang = { introduction: '一个快速开发vue3的移动端模板', home: { support: '支持', + cssMultiLanguage: 'css图片多语言', }, }; diff --git a/src/layout/basic/index.vue b/src/layout/basic/index.vue index d3603e9..91049be 100644 --- a/src/layout/basic/index.vue +++ b/src/layout/basic/index.vue @@ -62,7 +62,7 @@ .main-page { box-sizing: border-box; padding: 40px; - height: calc(100vh - 88px); + height: calc(100vh - 200px); overflow-y: scroll; overflow-x: hidden; } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index f2a9d51..2af5760 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -11,6 +11,11 @@ + + +
+
+
{{ $t('language.zh') }} @@ -18,7 +23,6 @@ {{ $t('language.en') }} -
{{ getUserInfo }} @@ -27,7 +31,6 @@ import { computed } from 'vue'; import { useUserStore } from '/@/store/modules/user'; import { setLang, i18n } from '/@/i18n'; - let cellList = ['vue3', 'vite', 'vue-router', 'axios', 'Pinia', 'vue-i18n', 'vue-jsx', 'vatlet/vant/nutUI']; const userStore = useUserStore(); const getUserInfo = computed(() => { @@ -74,7 +77,6 @@ .btn-wrap { margin: 20px; - display: flex; } .btn-add { @include main-lang-bg(302px, 82px, '/@/assets/button', 'add.png');