Selaa lähdekoodia

图片加上load

yf_zd 5 vuotta sitten
vanhempi
commit
f2cf29e86a

+ 1 - 1
bigdata2/config/index.js

@@ -11,8 +11,8 @@ module.exports = {
     assetsPublicPath: '/',
     proxyTable: {
       '/': {
+        // target: 'http://192.168.1.3:8000/',
         target: 'http://192.168.1.11:8080/',
-        // target: 'http://192.168.1.8:8000/',
         // target: 'http://192.168.1.120:8001/',
         changeOrigin: true,
         pathRewrite: {

+ 1 - 1
bigdata2/src/pages/forecasting/bzy/BzyPhotos.vue

@@ -26,7 +26,7 @@
 						</template>
 					</div>
 					<div class="photoImg">
-						<img :src="item.addr" @error="errImg" alt />
+						<img v-lazy="item.addr"  alt />
 					</div>
 					<div class="photoCtrl">
 						<div >

+ 1 - 1
bigdata2/src/pages/forecasting/xycb/xycbDataPhotos.vue

@@ -36,7 +36,7 @@
 						<el-checkbox v-show="!delBtnState" v-model="item.checked"></el-checkbox>
 					</div>
 					<div class="photoImg">
-						<img :src="'/'+item.addr" />
+						<img v-lazy="item.addr"  alt />
 					</div>
 					<div class="photoCtrl">
 						<span>{{item.addtime*1000 | formatTime}}</span>