wujingjing
2025-04-14 77b15609b62c9bcd80fcdfd65f134a06252920b9
src/layout/component/sidebar/components/OtherPlatform.vue
@@ -25,7 +25,7 @@
                           <div ref="setPhoneQRCode" class="mt-[8px] mb-[8px]"></div>
                           <p class="text-center text-info m-0 p-0 leading-5 text-sm">
                              浏览器扫码下载 <br />
                              WI 水务智能助手
                              WI水务智能平台
                           </p>
                        </div>
                     </div>
@@ -44,10 +44,10 @@
</template>
<script setup lang="ts" name="OtherPlatform">
import { ref, nextTick, onMounted } from 'vue';
import QRCode from 'qrcodejs2-fixes';
import { nextTick, onMounted, ref } from 'vue';
import { SERVE_URL } from '/@/constants';
import { selectFirstRoom } from '/@/stores/chatRoom';
import QRCode from 'qrcodejs2-fixes';
//#region ====================== 扫码手机端下载 ======================
const setPhoneQRCode = ref<HTMLElement | null>(null);
@@ -57,7 +57,7 @@
   if (isInitQrcode) return;
   isInitQrcode = true;
   let currentTime = new Date().getTime();
   const url = `${SERVE_URL}ai_html/views/mobileDownload/index.html?v=${currentTime}`;
   const url = `${SERVE_URL}mobile/prod/html/views/mobile_download/index.html?v=${currentTime}`;
   nextTick(() => {
      (<HTMLElement>setPhoneQRCode.value).innerHTML = '';
      new QRCode(setPhoneQRCode.value, {
@@ -72,7 +72,7 @@
//#endregion
const addPluginClick = () => {
   window.open('/ai_html/views/extension/index.html');
   window.open(`${SERVE_URL}ai_html/views/extension/index.html`);
};
onMounted(async () => {
   selectFirstRoom();