diff --git a/App.vue b/App.vue index 683d082..93d9caf 100644 --- a/App.vue +++ b/App.vue @@ -1,36 +1,36 @@ @@ -41,18 +41,18 @@ onHide(() => { page, body, #app { - font-family: PingFang SC, PingFang SC; - background-color: #e9f3f7; - height: 100vh; - width: 100vw; + font-family: PingFang SC, PingFang SC; + background-color: #e9f3f7; + height: 100vh; + width: 100vw; } /*每个页面公共css */ ::-webkit-scrollbar { - display: none; + display: none; } .mb12 { - margin-bottom: 12px; + margin-bottom: 12px; } diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue index 8f1e3ef..391426f 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/chat/ChatMainList.vue @@ -157,7 +157,9 @@ import { import WebSocketManager from "@/utils/WebSocketManager"; import TypewriterManager from "@/utils/TypewriterManager"; import { IdUtils } from "@/utils"; +import { useAppStore } from "@/store"; +const appStore = useAppStore(); /// 导航栏相关 const statusBarHeight = ref(20); /// 输入框组件引用 @@ -182,8 +184,6 @@ const chatMsgList = ref([]); /// 输入口的输入消息 const inputMessage = ref(""); -/// 从个渠道获取如二维,没有的时候就返回首页的数据 -const sceneId = ref(""); /// agentId 首页接口中获取 const agentId = ref("1"); /// 会话ID 历史数据接口中获取 @@ -383,7 +383,9 @@ const loadConversationMsgList = async () => { // 获取首页数据 const getMainPageData = async () => { - const res = await mainPageData(sceneId.value); + /// 从个渠道获取如二维,没有的时候就返回首页的数据 + const sceneId = appStore.sceneId || ""; + const res = await mainPageData(sceneId); if (res.code === 0) { mainPageDataModel.value = res.data; agentId.value = res.data.agentId; diff --git a/pages/index/index.vue b/pages/index/index.vue index 77ff20a..bfdc48c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -5,21 +5,24 @@ - - + :visible="calendarVisible" + mode="single" + :default-value="selectedDate" + @close="handleCalendarClose" + @select="handleDateSelect" + />