Compare commits

..

No commits in common. "2174e37c6afc0873a7d26c3d2be6b36d608dff42" and "f7fc24572d9558c967c1ff768370b1a39863ef7e" have entirely different histories.

2 changed files with 15 additions and 14 deletions

View file

@ -1,12 +1,5 @@
<template> <template>
<div v-if="isWeixin || isQQ" style="text-align: center;"> <t-config-provider v-if="reloadLang" :global-config="locale">
<div style="height: 75vh; display: flex; flex-direction: column; align-items: center;">
<div style="padding: 20px; padding-top: 35vh; font-size: 1.5rem;">如需浏览请长按网址复制后使用浏览器访问</div>
<p style="padding: 20px; background-color: #F1F1F1;">{{ link }}</p>
</div>
<div style="color: #AAAAAA;">{{ ua }}</div>
</div>
<t-config-provider v-if="reloadLang && !isWeixin && !isQQ" :global-config="locale">
<a-config-provider :locale="locale"> <a-config-provider :locale="locale">
<router-view /> <router-view />
<global-setting /> <global-setting />
@ -44,14 +37,22 @@
shynet.src = "https://shynet.vicicode.com/ingress/4c1dcea4-75c5-45e2-a641-25f211adbad6/script.js"; shynet.src = "https://shynet.vicicode.com/ingress/4c1dcea4-75c5-45e2-a641-25f211adbad6/script.js";
document.body.append(shynet); document.body.append(shynet);
} }
const renderQa = () => {
return h("img", { src: '/qrcode_1714310463601.jpg', height: 440 });
}
const renderPopup = () => {
return h("img", { src: '/1714006925783.jpg', height: 440 });
}
const renderShang = () => {
return h("img", { src: '/mm_facetoface_collect_qrcode_1714392837792.png', height: 440 });
}
const { currentLocale } = useLocale(); const { currentLocale } = useLocale();
const reloadLang = ref(true); const reloadLang = ref(true);
const ua = navigator.userAgent;
const isWeixin = ua.indexOf('MicroMessenger') != -1 ? true : false;
const isQQ = ua.indexOf('QQ/') != -1 ? true : false;
const link = location.href;
const locale = computed(() => { const locale = computed(() => {
let lang = undefined; let lang = undefined;

View file

@ -95,7 +95,7 @@ const restore = async(type: any = 1) => {
} }
if(type == 5){ if(type == 5){
const eepromSize = await check_eeprom(appStore.connectPort, appStore.configuration?.uart); const eepromSize = await check_eeprom(appStore.connectPort, appStore.configuration?.uart);
if(eepromSize != 0x40000 && eepromSize != 0x80000){ if(eepromSize != 0x40000 && eepromSize != 0x40000){
state.status = state.status + "只支持 2Mbit 以上 EEPROM 写入<br/>"; state.status = state.status + "只支持 2Mbit 以上 EEPROM 写入<br/>";
return return
} }