更新组件
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user