Browse Source

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

cherishsince 1 year ago
parent
commit
d5ffc80ea5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/ai/chat/role/index.vue

+ 2 - 0
src/views/ai/chat/role/index.vue

@@ -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()
   }
 }