fix: 🐛 修复录制结束点击取消异常弹窗以及点击重启服务没有反应的问题

This commit is contained in:
viarotel 2023-10-25 18:43:12 +08:00
parent f91a2002ee
commit 054c55b26d
6 changed files with 11 additions and 13 deletions

View File

@ -6,6 +6,7 @@ import tray from './tray/index.js'
export default (mainWindow) => { export default (mainWindow) => {
ipcMain.on('restart-app', () => { ipcMain.on('restart-app', () => {
app.isQuiting = true
app.relaunch() app.relaunch()
app.quit() app.quit()
}) })

View File

@ -47,7 +47,6 @@ export default {
this.$store.device.setRemark(this.device.id, value) this.$store.device.setRemark(this.device.id, value)
}, },
async handleFocus() { async handleFocus() {
console.log('handleFocus')
this.$refs.elInput.focus() this.$refs.elInput.focus()
}, },
}, },

View File

@ -328,8 +328,6 @@ export default {
if (error.message) { if (error.message) {
this.$message.warning(error.message) this.$message.warning(error.message)
} }
this.handleReset()
} }
row.$recordLoading = false row.$recordLoading = false
}, },

View File

@ -41,16 +41,16 @@
</el-select> </el-select>
</div> </div>
<div class=""> <div class="">
<el-button type="" plain @click="handleImport"> <el-button type="" icon="Upload" plain @click="handleImport">
{{ $t("preferences.config.import.name") }} {{ $t("preferences.config.import.name") }}
</el-button> </el-button>
<el-button type="" plain @click="handleExport"> <el-button type="" icon="Download" plain @click="handleExport">
{{ $t("preferences.config.export.name") }} {{ $t("preferences.config.export.name") }}
</el-button> </el-button>
<el-button type="" plain @click="handleEdit"> <el-button type="" icon="Edit" plain @click="handleEdit">
{{ $t("preferences.config.edit.name") }} {{ $t("preferences.config.edit.name") }}
</el-button> </el-button>
<el-button type="" plain @click="handleResetAll"> <el-button type="" icon="RefreshRight" plain @click="handleResetAll">
{{ $t("preferences.config.reset.name") }} {{ $t("preferences.config.reset.name") }}
</el-button> </el-button>
</div> </div>

View File

@ -1,8 +1,8 @@
import { createI18n } from 'vue-i18n' import { createI18n } from 'vue-i18n'
import messages from '@intlify/unplugin-vue-i18n/messages' import messages from '@intlify/unplugin-vue-i18n/messages'
// const locale = window.electron?.process?.env?.LOCALE const locale = window.electron?.process?.env?.LOCALE
const locale = 'en_US' // const locale = 'en_US'
// console.log('locale', locale) // console.log('locale', locale)

View File

@ -103,21 +103,21 @@
}, },
"config": { "config": {
"import": { "import": {
"name": "导入配置", "name": "导入",
"placeholder": "请选择要导入的配置文件", "placeholder": "请选择要导入的配置文件",
"success": "导入成功" "success": "导入成功"
}, },
"export": { "export": {
"name": "导出配置", "name": "导出",
"message": "导出配置", "message": "导出配置",
"placeholder": "请选择要导出的位置", "placeholder": "请选择要导出的位置",
"success": "导出成功" "success": "导出成功"
}, },
"edit": { "edit": {
"name": "编辑配置" "name": "编辑"
}, },
"reset": { "reset": {
"name": "重置配置" "name": "重置"
}, },
"save": { "save": {
"name": "保存配置", "name": "保存配置",