Explorar el Código

修改logo图片

zs hace 7 meses
padre
commit
3594ab06de
Se han modificado 2 ficheros con 8 adiciones y 9 borrados
  1. 7 8
      src/layout/index.vue
  2. 1 1
      src/views/home/index.vue

+ 7 - 8
src/layout/index.vue

@@ -4,9 +4,10 @@
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
         <div class="left">
           <div class="left_1" @click="toHome">
-            <el-image class="image" v-if="configInfo && configInfo.logoUrl && configInfo.logoUrl.length > 0" :src="getUrl(configInfo.logoUrl)" fit="fill" />
+            <el-image class="image" :src="logo" fit="fill" />
+            <!-- <el-image class="image" v-if="configInfo && configInfo.logoUrl && configInfo.logoUrl.length > 0" :src="getUrl(configInfo.logoUrl)" fit="fill" />
             <el-image class="image" v-else :src="siteInfo.logoUrl" fit="fill" />
-            <div class="left_title">{{ configInfo.zhTitle || siteInfo.zhTitle }}</div>
+            <div class="left_title">{{ configInfo.zhTitle || siteInfo.zhTitle }}</div> -->
           </div>
           <div class="left_2">
             <template v-for="item in menusList" :key="item.id">
@@ -45,7 +46,8 @@
 import QRCodeVue from 'qrcode.vue'
 import { get } from 'lodash-es'
 import { LoginOutlined } from '@ant-design/icons-vue'
-import { siteInfo } from '@/layout/site'
+// 图片引入
+import logo from '/images/logohome.png'
 // 接口
 import { DesignStore } from '@/store/api/platform/design'
 const designStore = DesignStore()
@@ -103,9 +105,6 @@ const toOut = () => {
 const toHome = () => {
   router.push({ path: `/` })
 }
-const getUrl = (item) => {
-  if (item && item.length > 0) return `${import.meta.env.VITE_APP_HOST}${item[0].uri}`
-}
 watch(
   route,
   (newVal) => {
@@ -138,8 +137,8 @@ watch(
       flex-direction: column;
       align-items: center;
       .image {
-        height: 60px;
-        width: 220px;
+        height: 40px;
+        width: 100%;
       }
       .left_title {
         padding: 10px 0 0 0;

+ 1 - 1
src/views/home/index.vue

@@ -46,7 +46,7 @@
 <script setup>
 import { footInfo } from '@/layout/site'
 // 图片引入
-import videoSource from '/images/newhome.mp4'
+import videoSource from '/images/video.mp4'
 import logo from '/images/logohome.png'
 
 import { UserStore } from '@/store/user'