no message
This commit is contained in:
@@ -61,10 +61,12 @@
|
||||
<!-- </div> -->
|
||||
</template>
|
||||
<script setup>
|
||||
let props = defineProps({
|
||||
// MyPopupState: String, // collect mj
|
||||
count: Object,
|
||||
})
|
||||
// let props = defineProps({
|
||||
// // MyPopupState: String, // collect mj
|
||||
// count: Object,
|
||||
// })
|
||||
|
||||
let count = inject("count")
|
||||
|
||||
let show = ref(false)
|
||||
const router = useRouter()
|
||||
@@ -135,7 +137,6 @@ const cutMy = (key, isEmpty) => {
|
||||
collectPage = 1
|
||||
collectCount.value = 0
|
||||
}
|
||||
|
||||
|
||||
if (key == "collect" && collectList.length == 0) getCollect()
|
||||
else if (key == "mj" && publishList.length == 0) getPublish()
|
||||
@@ -224,8 +225,9 @@ const cancelCollection = (token, index) => {
|
||||
}
|
||||
|
||||
collectList.splice(index, 1)
|
||||
collectCount.value--
|
||||
showList.value = [...collectList]
|
||||
count.value.collect--
|
||||
collectCount.value--
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div class="footer">
|
||||
<button type="button" @click="cancel()">取消</button>
|
||||
<button type="submit" :disabled="checkList.length == 0" @click="alertSubmit">提交</button>
|
||||
<button type="submit" @click="alertSubmit">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -44,6 +44,10 @@ const selectRadio = value => {
|
||||
|
||||
// 举报提交
|
||||
const alertSubmit = () => {
|
||||
if (checkList.value.length == 0) {
|
||||
ElMessage.error("请选择举报类型")
|
||||
return
|
||||
}
|
||||
checkList.value.push(alertText.value)
|
||||
reportAlertShow.value = false
|
||||
commentReportHttp({
|
||||
@@ -67,7 +71,7 @@ const cancel = () => (reportAlertShow.value = false)
|
||||
.alert-form {
|
||||
display: block;
|
||||
position: fixed;
|
||||
z-index: 2100;
|
||||
z-index: 999;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100vw;
|
||||
|
||||
@@ -45,6 +45,8 @@ onMounted(() => {
|
||||
})
|
||||
let count = ref({})
|
||||
|
||||
provide("count", count)
|
||||
|
||||
const getUser = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
MyUserInfoHttp().then(res => {
|
||||
|
||||
Reference in New Issue
Block a user