更新组件

This commit is contained in:
aixianling
2022-01-27 15:16:26 +08:00
parent 1c573aa443
commit 84d9c625e1

View File

@@ -1,6 +1,6 @@
<template>
<div class="emptyWrap">
<img class="emptyImg" src="https://cdn.cunwuyun.cn/dvcp/h5/Empty.png">
<img class="emptyImg" :src="emptyImg">
<div class="emptyText">{{ description }}</div>
</div>
</template>
@@ -9,10 +9,17 @@
export default {
name: "AiEmpty",
props: {
img: {default: "https://cdn.cunwuyun.cn/dvcp/h5/Empty.png"},
noPermit: Boolean,
description: {
default: '暂无相关信息',
type: String
}
},
computed: {
emptyImg() {
return this.noPermit ? "https://cdn.cunwuyun.cn/dvcp/h5/no-admin.png" : this.img
}
}
}
</script>