perf: 🔨 自定义通用的文件存储路径相关逻辑完善

This commit is contained in:
viarotel 2023-10-13 18:21:45 +08:00
parent e5b0b7b8cc
commit 8455e8692b
2 changed files with 3 additions and 1 deletions

View File

@ -155,6 +155,7 @@ export default {
async handleDirectory({ field }) {
const res = await this.$electron.ipcRenderer.invoke('show-open-dialog', {
properties: ['openDirectory'],
defaultPath: this.scrcpyForm[field],
})
if (!res) {

View File

@ -3,11 +3,12 @@ export default () => {
return [
{
label: '录制存储路径',
label: '文件存储地址',
type: 'input.directory',
field: '--record',
value: $path.resolve('../'),
placeholder: '默认值为执行应用的同级目录',
tips: '截图和录制的音视频都存在这里',
},
{
label: '录制视频格式',