Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9a553a20
authored
Nov 19, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除备用文件
1 parent
801d8a32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
mixin/click.js
mixin/click.js
View file @
9a553a2
...
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-11-19
09:38:34
* @LastEditTime: 2024-11-19
11:18:42
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -243,12 +243,12 @@ export default {
tempFilePath
:
audioPath
[
i
]
})
let
oldFilePath
const
getPreAudioList
=
interruptRecord
.
getPreAudioList
||
[]
if
(
saveResult
[
1
]
&&
saveResult
[
1
].
savedFilePath
)
{
oldFilePath
=
saveResult
[
1
].
savedFilePath
this
.
removeSavedFile
(
getPreAudioList
[
i
])
uni
.
$logger
.
local
.
info
(
`保存文件结果路径
${
oldFilePath
}
`
)
}
else
{
const
getPreAudioList
=
interruptRecord
.
getPreAudioList
||
[]
console
.
log
(
getPreAudioList
)
oldFilePath
=
getPreAudioList
[
i
]
uni
.
$logger
.
local
.
info
(
`临时文件不存在,找到之前保存的文件
${
oldFilePath
}
`
)
}
...
...
@@ -276,6 +276,15 @@ export default {
interruptRecord
.
updatePreRecords
(
saveRecords
,
true
)
}
},
removeSavedFile
(
filePath
)
{
uni
.
removeSavedFile
({
filePath
:
filePath
,
complete
:
function
(
res
)
{
uni
.
$logger
.
local
.
info
(
`删除轮询的文件
${
filePath
}
`
)
}
})
},
/**
* 删除待提交记录
* @returns {void}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment