|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="redressBox">
|
|
|
+ <div class="redressBox" v-if="forumType">
|
|
|
<div class="addBox joinBox" v-if="intersect">
|
|
|
<div v-if="props.isShow.includes(2)" class="btnBox">
|
|
|
<router-link
|
|
|
@@ -50,9 +50,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+ import tool from '@/utils/tool'
|
|
|
+ const forumType = computed((e) => (tool.dictList('FORUM_TYPE')[0]?.value == 1 ? true : false))
|
|
|
const props = defineProps({
|
|
|
isShow: {
|
|
|
- type: [Array,String,Number],
|
|
|
+ type: [Array, String, Number],
|
|
|
default: [0, 1, 2, 3]
|
|
|
},
|
|
|
forumData: {
|
|
|
@@ -65,8 +67,8 @@
|
|
|
default: ''
|
|
|
}
|
|
|
})
|
|
|
- const intersect = computed(()=>{
|
|
|
- return [0, 1, 2].filter(e=>props.isShow.includes(e)).length
|
|
|
+ const intersect = computed(() => {
|
|
|
+ return [0, 1, 2].filter((e) => props.isShow.includes(e)).length
|
|
|
})
|
|
|
</script>
|
|
|
|