uni.previewImageapp端云端打包后打开图片黑屏,本地自定义基座和h5端小程序端正常~
请问如何解决?
<template>
<view class="col-img-qrcode">
<image @click="imgShow" class="image" :src="qrcode"></image>
</view>
</template>
<script>
export default {
data() {
return {
qrcode: '/static/images/qrcode.jpg'
};
},
methods: {
imgShow() {
uni.previewImage({
current: 0,
urls: [this.qrcode]
});
}
}
};
</script>
0 个回复