diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue
index dc0c017..a413d09 100644
--- a/pages/chat/ChatMainList.vue
+++ b/pages/chat/ChatMainList.vue
@@ -97,12 +97,12 @@
/>
@@ -354,15 +354,6 @@ onMounted(async () => {
addNoticeListener();
initTypewriterManager();
initWebSocket();
- uni.getProvider({
- service: "oauth",
- success: (res) => {
- console.log("getProvider success", res);
- },
- fail: (err) => {
- console.log("getProvider fail", err);
- },
- });
} catch (error) {
console.error("页面初始化错误:", error);
}
@@ -394,9 +385,9 @@ const getMainPageData = async () => {
const sceneId = appStore.sceneId || "";
const res = await mainPageData(sceneId);
if (res.code === 0) {
+ initData();
mainPageDataModel.value = res.data;
agentId.value = res.data.agentId;
- initData();
setTimeoutScrollToBottom();
}
};