Browse Source

修改图片路径

chc 1 year ago
parent
commit
2b77dc5e51
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/map/legend.vue

+ 4 - 4
src/views/map/legend.vue

@@ -12,7 +12,7 @@
         }
       "
     >
-      <img src="./static/img/legend/legend.png" />
+      <img :src="'./static/img/legend/legend.png'" />
     </div>
     <!-- 图例模块 -->
     <div v-drag class="tuli" v-show="tuliType">
@@ -22,14 +22,14 @@
         </div>
         <div class="tuil-body">
           <div class="title2" @click="siteShow=!siteShow">
-            <img src="./static/img/legend/arrow.png" style="display: inline;margin-top: -4px;" v-if="siteShow"/>
-            <img src="./static/img/legend/arrow.png" style="display: inline;transform: rotate(-90deg);margin-top: -4px;" v-else/>
+            <img :src="'./static/img/legend/arrow.png'" style="display: inline;margin-top: -4px;" v-if="siteShow"/>
+            <img :src="'./static/img/legend/arrow.png'" style="display: inline;transform: rotate(-90deg);margin-top: -4px;" v-else/>
             <span>站点</span>
           </div>
           <div class="title2-body" v-if="siteShow">
             <div class="legend-item">
               <div class="img-box">
-                <img src="./static/img/legend/shuiwen.png" style="display: inline" />
+                <img :src="'./static/img/legend/shuiwen.png'" style="display: inline" />
               </div>
               水文站
             </div>