mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
Compare commits
No commits in common. "2174e37c6afc0873a7d26c3d2be6b36d608dff42" and "f7fc24572d9558c967c1ff768370b1a39863ef7e" have entirely different histories.
2174e37c6a
...
f7fc24572d
2 changed files with 15 additions and 14 deletions
27
src/App.vue
27
src/App.vue
|
@ -1,12 +1,5 @@
|
|||
<template>
|
||||
<div v-if="isWeixin || isQQ" style="text-align: center;">
|
||||
<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">
|
||||
<t-config-provider v-if="reloadLang" :global-config="locale">
|
||||
<a-config-provider :locale="locale">
|
||||
<router-view />
|
||||
<global-setting />
|
||||
|
@ -44,14 +37,22 @@
|
|||
shynet.src = "https://shynet.vicicode.com/ingress/4c1dcea4-75c5-45e2-a641-25f211adbad6/script.js";
|
||||
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 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(() => {
|
||||
let lang = undefined;
|
||||
|
|
|
@ -95,7 +95,7 @@ const restore = async(type: any = 1) => {
|
|||
}
|
||||
if(type == 5){
|
||||
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/>";
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue