|
|
|
@ -33,8 +33,7 @@ |
|
|
|
<el-radio label="enter">Enter发送</el-radio> |
|
|
|
<el-radio label="enter">Enter发送</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<!-- 只能在软件中使用:需要访问本地文件系统 --> |
|
|
|
<el-form-item label="视讯存储"> |
|
|
|
<!-- <el-form-item label="视讯存储"> |
|
|
|
|
|
|
|
<div class="path-control"> |
|
|
|
<div class="path-control"> |
|
|
|
<el-input :value="basicForm.videoPath" disabled class="path-input" /> |
|
|
|
<el-input :value="basicForm.videoPath" disabled class="path-input" /> |
|
|
|
<div class="path-buttons"> |
|
|
|
<div class="path-buttons"> |
|
|
|
@ -51,7 +50,7 @@ |
|
|
|
<el-button class="modify-btn">修改</el-button> |
|
|
|
<el-button class="modify-btn">修改</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> --> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tab-pane> |
|
|
|
<!-- 音频设置 --> |
|
|
|
<!-- 音频设置 --> |
|
|
|
@ -169,11 +168,9 @@ export default { |
|
|
|
activeTab: "basic", |
|
|
|
activeTab: "basic", |
|
|
|
basicForm: { |
|
|
|
basicForm: { |
|
|
|
notification: true, |
|
|
|
notification: true, |
|
|
|
// autoStart: false, // 只能在软件中使用 |
|
|
|
|
|
|
|
// exitOnClose: true, // 只能在软件中使用 |
|
|
|
|
|
|
|
sendKey: "enter", |
|
|
|
sendKey: "enter", |
|
|
|
// videoPath: "2026-05/HiuUltraTalk_V01.01.16/HiuTalkStore", // 只能在软件中使用 |
|
|
|
videoPath: "", |
|
|
|
// cachePath: "2026-05/HiuUltraTalk_V01.01.16/HiuTalkStore", // 只能在软件中使用 |
|
|
|
cachePath: "", |
|
|
|
}, |
|
|
|
}, |
|
|
|
audioForm: { |
|
|
|
audioForm: { |
|
|
|
autoGain: true, |
|
|
|
autoGain: true, |
|
|
|
@ -200,15 +197,28 @@ export default { |
|
|
|
this.otherForm.signature = signatureData; |
|
|
|
this.otherForm.signature = signatureData; |
|
|
|
this.saveSettings(); |
|
|
|
this.saveSettings(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取默认路径 |
|
|
|
|
|
|
|
getDefaultPath() { |
|
|
|
|
|
|
|
const version = this.$store.getters.loginInfo?.upgrade_data?.version || "V01.01.16"; |
|
|
|
|
|
|
|
return `D:\\RUS_${version}\\HiUTalkStore`; |
|
|
|
|
|
|
|
}, |
|
|
|
// 从本地加载设置 |
|
|
|
// 从本地加载设置 |
|
|
|
loadSettings() { |
|
|
|
loadSettings() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const savedSettings = localStorage.getItem(SYSTEM_SETTINGS_KEY); |
|
|
|
const savedSettings = localStorage.getItem(SYSTEM_SETTINGS_KEY); |
|
|
|
|
|
|
|
const defaultPath = this.getDefaultPath(); |
|
|
|
if (savedSettings) { |
|
|
|
if (savedSettings) { |
|
|
|
const settings = JSON.parse(savedSettings); |
|
|
|
const settings = JSON.parse(savedSettings); |
|
|
|
// 合并保存的设置到表单 |
|
|
|
// 合并保存的设置到表单 |
|
|
|
if (settings.basicForm) { |
|
|
|
if (settings.basicForm) { |
|
|
|
this.basicForm = { ...this.basicForm, ...settings.basicForm }; |
|
|
|
this.basicForm = { ...this.basicForm, ...settings.basicForm }; |
|
|
|
|
|
|
|
// 如果没有保存路径,则使用默认路径 |
|
|
|
|
|
|
|
if (!this.basicForm.videoPath) { |
|
|
|
|
|
|
|
this.basicForm.videoPath = defaultPath; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!this.basicForm.cachePath) { |
|
|
|
|
|
|
|
this.basicForm.cachePath = defaultPath; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (settings.audioForm) { |
|
|
|
if (settings.audioForm) { |
|
|
|
this.audioForm = { ...this.audioForm, ...settings.audioForm }; |
|
|
|
this.audioForm = { ...this.audioForm, ...settings.audioForm }; |
|
|
|
@ -216,6 +226,10 @@ export default { |
|
|
|
if (settings.otherForm) { |
|
|
|
if (settings.otherForm) { |
|
|
|
this.otherForm = { ...this.otherForm, ...settings.otherForm }; |
|
|
|
this.otherForm = { ...this.otherForm, ...settings.otherForm }; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
// 如果没有保存的设置,使用默认路径 |
|
|
|
|
|
|
|
this.basicForm.videoPath = defaultPath; |
|
|
|
|
|
|
|
this.basicForm.cachePath = defaultPath; |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.error("加载系统设置失败:", e); |
|
|
|
console.error("加载系统设置失败:", e); |
|
|
|
@ -260,13 +274,13 @@ export default { |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
type: "warning", |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
const version = this.$store.getters.loginInfo?.upgrade_data?.version || "V01.01.16"; |
|
|
|
|
|
|
|
const defaultPath = `D:\\RUS_${version}\\HiUTalkStore`; |
|
|
|
this.basicForm = { |
|
|
|
this.basicForm = { |
|
|
|
notification: true, |
|
|
|
notification: true, |
|
|
|
// autoStart: false, |
|
|
|
|
|
|
|
// exitOnClose: true, |
|
|
|
|
|
|
|
sendKey: "enter", |
|
|
|
sendKey: "enter", |
|
|
|
// videoPath: "2026-05/HiuUltraTalk_V01.01.16/HiuTalkStore", |
|
|
|
videoPath: defaultPath, |
|
|
|
// cachePath: "2026-05/HiuUltraTalk_V01.01.16/HiuTalkStore", |
|
|
|
cachePath: defaultPath, |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.audioForm = { |
|
|
|
this.audioForm = { |
|
|
|
autoGain: true, |
|
|
|
autoGain: true, |
|
|
|
|