Przeglądaj źródła

fix: 1.默认图标添加。

suwenjiang 1 miesiąc temu
rodzic
commit
73404b6298

+ 8 - 0
src/assets/img/chat/system-svg.svg

@@ -0,0 +1,8 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="System (&#231;&#179;&#187;&#231;&#187;&#159;)">
+<path id="Vector" d="M9 3H4C3.44772 3 3 3.44772 3 4V9C3 9.5523 3.44772 10 4 10H9C9.5523 10 10 9.5523 10 9V4C10 3.44772 9.5523 3 9 3Z" fill="#999999" stroke="#999999" stroke-width="0.666667" stroke-linejoin="round"/>
+<path id="Vector_2" d="M9 14H4C3.44772 14 3 14.4477 3 15V20C3 20.5523 3.44772 21 4 21H9C9.5523 21 10 20.5523 10 20V15C10 14.4477 9.5523 14 9 14Z" fill="#999999" stroke="#999999" stroke-width="0.666667" stroke-linejoin="round"/>
+<path id="Vector_3" d="M17.5 10C19.433 10 21 8.433 21 6.5C21 4.56701 19.433 3 17.5 3C15.567 3 14 4.56701 14 6.5C14 8.433 15.567 10 17.5 10Z" fill="#999999" stroke="#999999" stroke-width="0.666667" stroke-linejoin="round"/>
+<path id="Vector_4" d="M20 14H15C14.4477 14 14 14.4477 14 15V20C14 20.5523 14.4477 21 15 21H20C20.5523 21 21 20.5523 21 20V15C21 14.4477 20.5523 14 20 14Z" fill="#999999" stroke="#999999" stroke-width="0.666667" stroke-linejoin="round"/>
+</g>
+</svg>

+ 3 - 2
src/pages/chat/create-group.vue

@@ -95,9 +95,8 @@
           >
             <div class="w-24 h-24 shrink-0 mr-6">
               <img
-                v-if="subItem?.typeIcon"
                 class="w-full h-full object-cover"
-                :src="subItem?.typeIcon"
+                :src="subItem?.typeIcon ? subItem?.typeIcon : system"
                 alt=""
               />
             </div>
@@ -169,6 +168,8 @@
 </template>
 
 <script setup>
+import system from '~/assets/img/chat/system-svg.svg'
+
 const userInfoStore = useUserInfoStore()
 const { userInfo } = storeToRefs(userInfoStore)
 

+ 2 - 4
src/pages/chat/set.vue

@@ -424,9 +424,8 @@
           >
             <div class="w-24 h-24 shrink-0 mr-6">
               <img
-                v-if="subItem?.typeIcon"
                 class="w-full h-full object-cover"
-                :src="subItem?.typeIcon"
+                :src="subItem?.typeIcon ? subItem?.typeIcon : system"
                 alt=""
               />
             </div>
@@ -482,8 +481,7 @@
   </div>
 </template>
 <script setup>
-import city from '~/assets/img/chat/city-one.svg'
-import book from '~/assets/img/chat/book.svg'
+import system from '~/assets/img/chat/system-svg.svg'
 
 const route = useRoute()