feat: 调整了跳转的交互

This commit is contained in:
2026-04-29 16:31:59 +08:00
parent bf76fa89c9
commit 3e572052e8
4 changed files with 66 additions and 3 deletions

View File

@@ -196,6 +196,7 @@
import { onMounted, nextTick, onUnmounted, ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import {
SWITCH_TO_COMPANION_TAB,
SCROLL_TO_BOTTOM,
SEND_MESSAGE_CONTENT_TEXT,
SEND_MESSAGE_COMMAND_TYPE,
@@ -463,6 +464,14 @@ const addNoticeListener = () => {
handleReplyInstruct(item);
}
});
uni.$on(SWITCH_TO_COMPANION_TAB, () => {
tabIndex.value = 1;
});
uni.$on(SWITCH_TO_DISCOVERY_TAB, () => {
tabIndex.value = 0;
});
};
/// =============生命周期函数↓================