|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="redressBox">
|
|
<div class="redressBox">
|
|
|
- <div class="addBox joinBox">
|
|
|
|
|
|
|
+ <div class="addBox joinBox" v-if="intersect">
|
|
|
<div v-if="props.isShow.includes(2)" class="btnBox">
|
|
<div v-if="props.isShow.includes(2)" class="btnBox">
|
|
|
<router-link
|
|
<router-link
|
|
|
:to="{
|
|
:to="{
|
|
@@ -38,8 +38,8 @@
|
|
|
</router-link>
|
|
</router-link>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="mt-3 joinBox">
|
|
|
|
|
- <div v-if="props.isShow.includes(3)" class="btnBox mt-2">
|
|
|
|
|
|
|
+ <div class="mt-3 joinBox" v-if="props.isShow.includes(3)">
|
|
|
|
|
+ <div class="btnBox mt-2">
|
|
|
<router-link :to="{ path: '/forum' }" target="_blank">
|
|
<router-link :to="{ path: '/forum' }" target="_blank">
|
|
|
<CommentOutlined class="textColor" style="font-size: 30px" />
|
|
<CommentOutlined class="textColor" style="font-size: 30px" />
|
|
|
<div class="textColor">讨论</div>
|
|
<div class="textColor">讨论</div>
|
|
@@ -54,18 +54,22 @@
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
isShow: {
|
|
isShow: {
|
|
|
- type: Array,
|
|
|
|
|
|
|
+ type: [Array,String,Number],
|
|
|
default: [0, 1, 2, 3]
|
|
default: [0, 1, 2, 3]
|
|
|
},
|
|
},
|
|
|
forumData: {
|
|
forumData: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
default: () => {}
|
|
default: () => {}
|
|
|
},
|
|
},
|
|
|
|
|
+ //纠错类型 0课程章节 1作业 2考试
|
|
|
resourceType: {
|
|
resourceType: {
|
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
|
default: ''
|
|
default: ''
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ const intersect = computed(()=>{
|
|
|
|
|
+ return [0, 1, 2].filter(e=>props.isShow.includes(e)).length
|
|
|
|
|
+ })
|
|
|
const jumpRedressUrl = (t) => {
|
|
const jumpRedressUrl = (t) => {
|
|
|
router.push({
|
|
router.push({
|
|
|
path: '/forum/addForum',
|
|
path: '/forum/addForum',
|