Skip to content

Commit

Permalink
修复版本更新检测失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
houdunwang committed Feb 20, 2024
1 parent f7bc3c8 commit cc9aa29
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
5 changes: 3 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/src/views/Secret.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -40,7 +43,7 @@ upgradeCheck()
</script>

<template>
<main class="w-screen h-screen bg-[#2c3e50] drag p-5 text-white z-[999]" v-show="show">
<main v-show="show" class="w-screen h-screen bg-[#2c3e50] drag p-5 text-white z-[999]">
<h1 class="text-center my-5 text-md opacity-80">口令设置</h1>
<section class="nodrag">
<h5>用户 uid</h5>
Expand Down

0 comments on commit cc9aa29

Please sign in to comment.