瀏覽代碼

事件列表图片懒加载

彭宇 2 年之前
父節點
當前提交
c7b65c8655
共有 2 個文件被更改,包括 2 次插入3 次删除
  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]: ''