diff --git a/.DS_Store b/.DS_Store index 1ab2976..81c3872 100644 Binary files a/.DS_Store and b/.DS_Store differ 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()