Skip to content

Commit

Permalink
新增一个按钮,在文件分割完成后,点击可展示目录位置
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhb23 committed May 9, 2022
1 parent da06221 commit a162f67
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lanzouyun-pan",
"version": "3.0.0",
"version": "3.0.1",
"private": true,
"main": "build/main/index.js",
"description": "蓝奏云网盘客户端",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lanzouyun-pan",
"version": "3.0.0",
"version": "3.0.1",
"private": true,
"main": "build/main/index.js",
"description": "蓝奏云网盘客户端",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/page/Files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ export default function Files() {
成功!移动文件:{fileCount}, 文件夹:{folderCount}
<Button
type={'link'}
size={'small'}
onClick={() => {
dismiss()
lsNextFolder(folderId)
Expand Down
11 changes: 9 additions & 2 deletions src/renderer/page/SplitMerge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function SplitMerge() {
if (file) {
const task = splitTask(file, config.splitSize)
setSplitInfo(task)
setOutput(`${task.file.path}.split`)
setOutput(path.join(path.dirname(task.file.path), `[sections]${task.file.name}`))
} else {
setSplitInfo(undefined)
setOutput('')
Expand Down Expand Up @@ -76,7 +76,14 @@ export default function SplitMerge() {
loading={loading['split']}
onClick={async () => {
await listener(split(splitInfo.splitFiles, output), 'split')
message.success('分割完成')
message.success(
<span>
分割完成
<Button type={'link'} size={'small'} onClick={() => electronApi.showItemInFolder(output)}>
打开目录
</Button>
</span>
)
}}
>
开始分割
Expand Down

0 comments on commit a162f67

Please sign in to comment.