tangning 8 tháng trước cách đây
mục cha
commit
0bad1618b0

+ 2 - 2
.env

@@ -2,7 +2,7 @@
 VITE_PORT = 3100
 VITE_PORT = 3100
 
 
 # spa-title
 # spa-title
-VITE_GLOB_APP_TITLE = 融合平台
+VITE_GLOB_APP_TITLE = Unified Data Platform
 
 
 # spa shortname
 # spa shortname
-VITE_GLOB_APP_SHORT_NAME = 融合平台
+VITE_GLOB_APP_SHORT_NAME = Unified Data Platform

BIN
src/assets/images/logo-en.png


+ 4 - 1
src/components/Application/src/AppLogo.vue

@@ -4,7 +4,8 @@
 -->
 -->
 <template>
 <template>
   <div class="anticon" :class="getAppLogoClass" @click="goHome">
   <div class="anticon" :class="getAppLogoClass" @click="goHome">
-    <img src="../../../assets/images/grey-logo.png" />
+    <img v-if="locale == 'en'" src="../../../assets/images/logo-en.png" />
+    <img v-else src="../../../assets/images/grey-logo.png" />
     <!-- <div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
     <!-- <div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
       {{ title }}
       {{ title }}
     </div> -->
     </div> -->
@@ -18,6 +19,7 @@
   import { useDesign } from '/@/hooks/web/useDesign';
   import { useDesign } from '/@/hooks/web/useDesign';
   import { PageEnum } from '/@/enums/pageEnum';
   import { PageEnum } from '/@/enums/pageEnum';
   import { useUserStore } from '/@/store/modules/user';
   import { useUserStore } from '/@/store/modules/user';
+  import { useI18n } from '/@/hooks/web/useI18n';
 
 
   const props = defineProps({
   const props = defineProps({
     /**
     /**
@@ -38,6 +40,7 @@
   const { getCollapsedShowTitle } = useMenuSetting();
   const { getCollapsedShowTitle } = useMenuSetting();
   const userStore = useUserStore();
   const userStore = useUserStore();
   const { title } = useGlobSetting();
   const { title } = useGlobSetting();
+  const { locale } = useI18n();
   const go = useGo();
   const go = useGo();
 
 
   const getAppLogoClass = computed(() => [
   const getAppLogoClass = computed(() => [

+ 1 - 1
src/store/modules/app.ts

@@ -36,7 +36,7 @@ export const useAppStore = defineStore({
     pageLoading: false,
     pageLoading: false,
     projectConfig: Persistent.getLocal(PROJ_CFG_KEY),
     projectConfig: Persistent.getLocal(PROJ_CFG_KEY),
     beforeMiniInfo: {},
     beforeMiniInfo: {},
-    title: '融合平台',
+    title: 'Unified Data Platform',
     // description: '',
     // description: '',
   }),
   }),
   getters: {
   getters: {