在vue表格中显示图片
<el-table-column prop="cover" label="封面" width="120">
<template slot-scope="scope">
<el-image style="width: 35px; height: 50px" :src="scope.row.cover"></el-image>
</template>
</el-table-column>
访问时出现
localhost:89/images/2022/05/15/1652607166018/0006.jpg net::ERR_UNKNOWN_URL_SCHEME
需要在图片地址上拼接 http:// 即可正常访问
localhost:89/images/ 该为
http://localhost:89/images/