Sfoglia il codice sorgente

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

cherishsince 1 anno fa
parent
commit
d5ffc80ea5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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()
   }
 }