【增加】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 // tabs
const getActiveTabsRole = async () => { const getActiveTabsRole = async () => {
if (activeRole.value === 'my-role') { if (activeRole.value === 'my-role') {
myPageNo.value = 1
await getMyRole() await getMyRole()
} else { } else {
publicPageNo.value = 1
await getPublicRole() await getPublicRole()
} }
} }