🎨加了一些组件数据监听优化
This commit is contained in:
@@ -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>
|
Reference in New Issue
Block a user