From cc9aa294217ea6b1568fffccfc6460ef93ac2d67 Mon Sep 17 00:00:00 2001 From: houdunren <2300071698@qq.com> Date: Tue, 20 Feb 2024 14:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=A3=80=E6=B5=8B=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 12292 -> 12292 bytes .eslintrc.cjs | 5 +++-- .vscode/settings.json | 2 +- src/renderer/src/App.vue | 2 +- src/renderer/src/views/Secret.vue | 5 ++++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.DS_Store b/.DS_Store index 1ab29761d36686b7956a0561363a57713ec0d401..81c3872bd3f2a04c804c989c481381ff9692a6b6 100644 GIT binary patch delta 1734 zcmb`IPfQ$D9LL{xcA+y2l(&?>v!yI97D@-Z3lu`30`jM&pdj*R*;-+DXIjQCyL4w* zXh~fUsErp}H)>2gXzQPY(HJ-7qDhU7T9bNF66K;sJ(ze<6KmqBzM0vD#&|I5B>Ud` z{oVKGeZHBsxwW~A66Y+qw7aFOgAn2%gc70?BdRC+!qIp*WX2m0|r~9%vDg2CyYL;XqM6?T^(0hjh0mV zStV;zVs;%}G_-h3pHdS#o4q|gwrTbVZx@yC@z%@!w$ASUqa$M*JBz7H6idsdlbWuD zqv}jZkEk(4i=CQW))Zqts3~g9&`xS=-4QgyD(PTnr&sh1Bd zg|#zFnsIi+RZMr*NVVd_3ftlRam8$>@bs!+Me3wl>9`r`OQ>vAc;0e1NR8rz&d$rz zke%2hrVfY`r?r?OP~CPli>=aRG!#~&0#)p~cCka6PTJ=d=&i5AdX-RlbAvPGYI1p=J6;_!@xPL;yfP1Q+Ng!@hsAK39sRGyn%Oc4Ikh` zT*pm(iLcPNiSO_mZsB*_<_HH)|HJ>^DjBz@HT zejzin3B1VERpHFk7yjT#d6?fxwxzXbs*ezE^>3x+9vnO(4*gHkGL@D3Ptw{fGR0J~ ztF)}Vrf%OoE$v-BTgcgr=CHhzb_?;WFjBTMEW|A){(`58ndBC$_vB=^EjU|%lS~`x z3NN@I(;eCDySzNp2F=Tw^$pA%runw%mYaAcM9NuaN_6|11*SLZux!ySw=om8As*@! znDD4`Ltj}ub=g~LH`ZZTTHK~$Tjj2gL;!e{S*0x+=7#VT*g4Y8~ZJo zeP~7}x^NiX=*2M%V+0Q{tY;9!ah$*`gIZ%)M-js^R&bV~y@n_7Brf1-2KIA!9xvc! zyn@SkHH-LFtlM;QRXJ#n*^b5KYhVllJ@MK ztE^gG^|u|AJ^uFg^Rj2v?{99EJ#Fo+>6^8_%v&YhsLHcDHi&E`S0*5@X zgVjxJ5Mh+r%%i}>HhGJb(Buu037q29)yBpKItm7p3&dq6drPZqUL+*RIQg%%k_^x= sROFn`3k~F%n@W02SjpR{#J2 diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 75e8f4c..83df556 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -29,9 +29,10 @@ module.exports = { }, overrides: [ { - files: ['*.js'], + files: ['*.js', '*.vue'], rules: { - '@typescript-eslint/explicit-function-return-type': 'off' + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/no-explicit-any': 'off' } } ] diff --git a/.vscode/settings.json b/.vscode/settings.json index ff839e1..d6bca9d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 688ed7e..2006463 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -3,7 +3,7 @@ import Footer from '@renderer/components/Footer.vue' import { useConfigStore } from '@renderer/stores/useConfigStore' import Camera from './views/Camera.vue' import Setting from './views/Setting.vue' -import Secret from './views/Secret.vue' +// import Secret from './views/Secret.vue' const { config } = useConfigStore() config.page = 'camera' diff --git a/src/renderer/src/views/Secret.vue b/src/renderer/src/views/Secret.vue index d5f1121..6712fda 100644 --- a/src/renderer/src/views/Secret.vue +++ b/src/renderer/src/views/Secret.vue @@ -6,6 +6,9 @@ import { ref } from 'vue' import Package from '../../../../package.json' const { config } = useConfigStore() +if (!config.token) { + config.token = { uid: '', secret: '' } +} const show = ref(false) const secretCheck = () => { axios @@ -40,7 +43,7 @@ upgradeCheck()