feat: 调整了跳转的交互
This commit is contained in:
@@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
/// =============生命周期函数↓================
|
||||
|
||||
Reference in New Issue
Block a user