【增加】Ai 角色搜索,重置分页,不然会搜索不到

This commit is contained in:
cherishsince 2024-05-17 15:35:13 +08:00
parent 0d44b6cb37
commit d5ffc80ea5

View File

@ -133,8 +133,10 @@ const getPublicRole = async (append?: boolean) => {
// tabs
const getActiveTabsRole = async () => {
if (activeRole.value === 'my-role') {
myPageNo.value = 1
await getMyRole()
} else {
publicPageNo.value = 1
await getPublicRole()
}
}