wujingjing
2025-01-06 4526dc437b634f8fe62151f3454d1be36c5c0f3f
src/layout/component/sidebar/components/ChatRecord.vue
@@ -9,11 +9,12 @@
            >
               新建对话
            </el-button>
            <el-popover placement="right-start" :width="136" trigger="hover">
            <OtherPlatform />
            <!-- <el-popover placement="right-start" :width="136" trigger="hover">
               <template #reference>
                  <div class="nav__chat">
                     <div class="nav__chat-icon">
                        <span class="chat_img ywifont ywicon-shouji !text-[20px] text-[#fff]"></span>
                        <span class="chat_img ywifont ywicon-shoujidiannao !text-[20px] text-[#fff]"></span>
                     </div>
                  </div>
               </template>
@@ -30,7 +31,7 @@
                     </div>
                  </div>
               </template>
            </el-popover>
            </el-popover> -->
         </div>
      </div>
      <div
@@ -98,6 +99,7 @@
import { DateFilter, dateFilterMap } from '/@/model/types/date';
import { activeRoomId, chatRoomList, gotoAnswerPage, newChatRoomClick, selectFirstRoom } from '/@/stores/chatRoom';
import { debounce, getRecentDateRange } from '/@/utils/util';
import OtherPlatform from './OtherPlatform.vue';
const chatRoomRef = ref<HTMLDivElement>(null);
const queryParams = ref({
   title: '',
@@ -195,8 +197,11 @@
//#endregion
//#region ====================== 扫码手机端下载 ======================
const setPhoneQRCode = ref<HTMLElement | null>(null);
let isInitQrcode = false;
// 初始化生成二维码
const initQrcode = () => {
   if (isInitQrcode) return;
   isInitQrcode = true;
   let currentTime = new Date().getTime();
   const url = `${SERVE_URL}ai_html/views/mobileDownload/index.html?v=${currentTime}`;
   nextTick(() => {
@@ -211,6 +216,10 @@
   });
};
//#endregion
const addPluginClick = () => {
   window.open('/ai_html/views/extension/index.html');
};
onMounted(async () => {
   selectFirstRoom();
   initQrcode();