bug修改

This commit is contained in:
zzyuan 2026-01-27 15:12:17 +08:00
parent 875aaf6def
commit c2f64313fe
1 changed files with 8 additions and 7 deletions

View File

@ -337,12 +337,12 @@
</div>
</div>
<!-- 收藏菜单 -->
<el-drawer :withHeader="false" size="20%" :show-close="false" :visible.sync="drawerShow" direction="rtl" class="custom-drawer">
<el-drawer :withHeader="false" size="20%" :show-close="false" :visible.sync="drawerShow" @close="closeDrawer" direction="rtl" class="custom-drawer">
<div class="myCollect-box">
<div class="myCollect-box-title">
<div style="font-size: 20px;color: #333943;font-weight: 600;">我的收藏</div>
<div style="color: #666;cursor: pointer;font-size: 16px;" v-if="!isEdit" @click="isEdit=true">编辑</div>
<div style="color: #33c2ac;cursor: pointer;font-size: 16px;font-weight: 600;" v-if="isEdit" @click="isEdit=false">确定</div>
<div style="color: #33c2ac;cursor: pointer;font-size: 16px;font-weight: 600;" v-if="isEdit" @click="closeDrawer">确定</div>
</div>
<div class="myCollect-box-zhineng">
<div class="myCollect-box-zhineng-title">收藏菜单</div>
@ -411,7 +411,6 @@ import Search from '@/components/HeaderSearch'
import { getUserProfile } from '@/api/system/user'
import { addMenuCollect,deleteMenuCollect,getMenuCollectListApi } from '@/api/system/menu'
export default {
components: { Search },
data() {
@ -485,10 +484,7 @@ export default {
value: val,
})
},
},
changCollectStatus() {
return
},
}
},
created() {
this.getUser()
@ -541,8 +537,13 @@ export default {
menuId:item.menuId
}
const res = await deleteMenuCollect(param)
this.changCollection(this.menuList,item.menuId,0)
this.getMenuCollectList()
},
closeDrawer(){
this.isEdit=false;
this.drawerShow=false
},
goMessageDetail(item) {
this.$refs.messagePopover.doClose() //
// this.$router.push({ path: '/message/detail', query: { id: item.id } }); //