Browse Source

事件列表图片懒加载

彭宇 2 năm trước cách đây
mục cha
commit
c7b65c8655
2 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 1 1
      src/views/forest.vue
  2. 1 2
      vue.config.js

+ 1 - 1
src/views/forest.vue

@@ -282,7 +282,7 @@
                   <div class="bgt-img">
                     <img v-if="item.picturePath!=null&&item.picturePath!=''&& item.pictureType=='image'"
                          :src="item.picturePath"
-                         style="width: 93px;height: 64px"/>
+                         style="width: 93px;height: 64px"  loading="lazy"/>
                     <img v-else src="../assets/images/integrated/event-img-sub.png" style="width: 93px;height: 64px"/>
                   </div>
                   <div class="bgt-info">

+ 1 - 2
vue.config.js

@@ -53,8 +53,7 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://127.0.0.1:3031`,
-        // target: `http://117.78.49.164:3031`,
-        target: `http://36.49.108.22:3031`,
+        target: `http://117.78.49.164:3031`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''