🎨加了一些组件数据监听优化

This commit is contained in:
2024-09-23 17:17:29 +08:00
parent f2dcb13e0d
commit 13e4006592
11 changed files with 82 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ import userApi from '@/api/user'
import { NAvatar,NTag,NButton } from 'naive-ui'
import { renderIcon } from '@/utils'
import { useUserStore } from '@/store'
import event from '@/utils/event/event'
const { $bus } = event();
const infoFormRef = ref()
@@ -400,6 +403,12 @@ function addUser() {
showInfoModel.value = true
}
$bus.on('refreshUserInfo',value => {
if (value) {
getUserList();
}
})
getUserList()
</script>
<style></style>