diff --git a/src/App.vue b/src/App.vue index fc9f4331..5f8c12ec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,7 +38,7 @@ onBeforeMount(() => { // 输出应用版本号 const appStore = useAppStore(); console.info( - `%c ${t('common.title')} %c ${appStore.appCode} - ${appStore.appVersion} `, + `%c ${t('common.desc')} %c ${appStore.appCode} - ${appStore.appVersion} `, 'color: #fadfa3; background: #030307; padding: 4px 0;', 'color: #030307; background: #fadfa3; padding: 4px 0;' ); diff --git a/src/assets/background_dark.jpg b/src/assets/background_dark.jpg index 1b64e7df..e47b1a76 100644 Binary files a/src/assets/background_dark.jpg and b/src/assets/background_dark.jpg differ diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 5efa3e7f..c4349a83 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -6,7 +6,7 @@ export default { // 通用 common: { - title: 'Core Network Management Platform', + title: 'Login Platform', desc: 'Core Network Management Platform', loading: 'Please wait...', inputPlease: 'Please input', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 18cb6da9..981cb157 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -6,7 +6,7 @@ export default { // 通用 common: { - title: '核心网管理平台', + title: '登录平台', desc: '核心网管理平台', loading: '请稍等...', inputPlease: '请输入', diff --git a/src/views/login.vue b/src/views/login.vue index 8860a863..54259d12 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -12,7 +12,7 @@ import useLayoutStore from '@/store/modules/layout'; import { viewTransitionTheme } from 'antdv-pro-layout'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { parseUrlPath } from '@/plugins/file-static-url'; -const { t, changeLocale, optionsLocale, currentLocale } = useI18n(); +const { t, changeLocale, optionsLocale } = useI18n(); const layoutStore = useLayoutStore(); const appStore = useAppStore(); const router = useRouter(); @@ -89,28 +89,12 @@ function fnGetCaptcha() { }); } -// LOGO地址 -const logoUrl = computed(() => { - let url = - appStore.logoType === 'brand' - ? parseUrlPath(appStore.filePathBrand) - : parseUrlPath(appStore.filePathIcon); - - if (url.indexOf('{language}') === -1) { - return url; - } - // 语言参数替换 - const local = currentLocale.value; - const lang = local.split('_')[0]; - return url.replace('{language}', lang); -}); - // 判断是否有背景地址 const calcBG = computed(() => { const bgURL = parseUrlPath(appStore.loginBackground); if (bgURL && bgURL !== '#') { return { - backgroundImage: `url(${bgURL})`, + backgroundImage: `url('${bgURL}')`, backgroundPosition: 'center', backgroundSize: 'cover', }; @@ -157,21 +141,9 @@ function fnChangeLocale(e: any) {
-