tangning 1 vuosi sitten
vanhempi
commit
2fbacccaa9
4 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 1 1
      .env
  2. 2 2
      src/components/Application/src/AppLogo.vue
  3. 2 1
      src/hooks/setting/index.ts
  4. 1 0
      types/config.d.ts

+ 1 - 1
.env

@@ -5,4 +5,4 @@ VITE_PORT = 3100
 VITE_GLOB_APP_TITLE = 江门公安
 
 # spa shortname
-VITE_GLOB_APP_SHORT_NAME = 4DAGE
+VITE_GLOB_APP_SHORT_NAME = 江门公安实景三维

+ 2 - 2
src/components/Application/src/AppLogo.vue

@@ -7,7 +7,7 @@
     <!-- <img src="../../../assets/images/grey-logo.png" /> -->
     <img src="/resource/img/logo.png" />
     <div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
-      {{ title }}
+      {{ title1 }}
     </div>
   </div>
 </template>
@@ -38,7 +38,7 @@
   const { prefixCls } = useDesign('app-logo');
   const { getCollapsedShowTitle } = useMenuSetting();
   const userStore = useUserStore();
-  const { title } = useGlobSetting();
+  const { title1 } = useGlobSetting();
   const go = useGo();
 
   const getAppLogoClass = computed(() => [

+ 2 - 1
src/hooks/setting/index.ts

@@ -20,7 +20,8 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
 
   // Take global configuration
   const glob: Readonly<GlobConfig> = {
-    title: VITE_GLOB_APP_TITLE,
+    title: VITE_GLOB_APP_SHORT_NAME,
+    title1: VITE_GLOB_APP_TITLE,
     apiUrl: VITE_GLOB_API_URL,
     shortName: VITE_GLOB_APP_SHORT_NAME,
     urlPrefix: VITE_GLOB_API_URL_PREFIX,

+ 1 - 0
types/config.d.ts

@@ -138,6 +138,7 @@ export interface ProjectConfig {
 export interface GlobConfig {
   // Site title
   title: string;
+  title1: string;
   // Service interface url
   apiUrl: string;
   // Upload url