Skip to content

Commit

Permalink
perf: 🔨 自定义通用的文件存储路径相关逻辑完善
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Oct 13, 2023
1 parent e5b0b7b commit 8455e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/renderer/src/components/Advanced/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/src/store/scrcpy/model/record/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ export default () => {

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

0 comments on commit 8455e86

Please sign in to comment.