| | |
| | | <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> |
| | |
| | | </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); |
| | |
| | | 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, { |
| | |
| | | //#endregion |
| | | |
| | | const addPluginClick = () => { |
| | | window.open('/ai_html/views/extension/index.html'); |
| | | window.open(`${SERVE_URL}ai_html/views/extension/index.html`); |
| | | }; |
| | | onMounted(async () => { |
| | | selectFirstRoom(); |