gemercheung 1 gadu atpakaļ
vecāks
revīzija
e0c39f431c
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/components/hotspot/index.vue

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

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