소스 검색

feat: lock vue

gemercheung 1 년 전
부모
커밋
e0c39f431c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/components/hotspot/index.vue

+ 3 - 3
src/components/hotspot/index.vue

@@ -18,7 +18,7 @@
           class="point zoom"
           @mouseenter.prevent="onMouseEnter($event, tag)"
           @click.stop="goTag($event, tag)"
-          :style="{ 'background-image': 'url(' + getUrl(tag.icon, tag.type) + ')' }"
+          :style="{ 'background-image': 'url(' + getUrl(tag.icon) + ')' }"
         ></span>
         <div class="content">
           <div
@@ -182,10 +182,10 @@
       emit('setCurrentTag');
     });
   });
-  const getUrl = (icon, type) => {
+  const getUrl = (icon) => {
     // let url = icon == '' || !icon ? getApp().resource.getAppURL('images/tag_icon_default.svg') : icon
     let url;
-    if (styleList.value.includes(icon) || type == 'link') {
+    if (styleList.value.includes(icon)) {
       // url = getApp().resource.getAppURL('images/tag/' + icon)
       url = getApp().resource.getAppURL('images/tag_icon_default.svg');
     } else {