mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
Compare commits
2 commits
f7fc24572d
...
2174e37c6a
Author | SHA1 | Date | |
---|---|---|---|
2174e37c6a | |||
c870732153 |
2 changed files with 14 additions and 15 deletions
25
src/App.vue
25
src/App.vue
|
@ -1,5 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<t-config-provider v-if="reloadLang" :global-config="locale">
|
<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">
|
||||||
<a-config-provider :locale="locale">
|
<a-config-provider :locale="locale">
|
||||||
<router-view />
|
<router-view />
|
||||||
<global-setting />
|
<global-setting />
|
||||||
|
@ -38,21 +45,13 @@
|
||||||
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;
|
||||||
|
|
|
@ -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 != 0x40000){
|
if(eepromSize != 0x40000 && eepromSize != 0x80000){
|
||||||
state.status = state.status + "只支持 2Mbit 以上 EEPROM 写入<br/>";
|
state.status = state.status + "只支持 2Mbit 以上 EEPROM 写入<br/>";
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue