suerprisePlus
2024-08-14 d4a3ca549f8755c2f87442c27217c3be39cab5cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template>
    <div class="msgBox" @click="setShowMenuClick">
 
        <i style="font-size: 20px;" class="el-icon-chat-line-round"></i>
        <el-badge v-show="msgCount > 0" :value="msgCount" class="item">
        </el-badge>
 
    </div>
</template>
 
<script>
export default {
    name: 'RouYiMsg',
    data() {
        return {
            msgCount: 0,
            dialogVisible: false
        }
    },
    methods: {
        setShowMenuClick() {
            this.dialogVisible = true
        },
        handleClose() {
            this.dialogVisible = false
        }
    },
    mounted() {
        console.log(123);
 
    },
}
</script>
 
<style lang="scss" scoped>
.msgBox {
    display: flex;
 
 
}
</style>