Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
和慭琛
take_order
Commits
808eb958
Commit
808eb958
authored
May 11, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复删除本地文件问题
parent
ced880c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
list.vue
take-order/pages/photo/list.vue
+15
-14
No files found.
take-order/pages/photo/list.vue
View file @
808eb958
...
...
@@ -244,21 +244,22 @@
// }
// })
const
self
=
this
uni
.
getSavedFileList
({
success
(
e
)
{
const
{
fileList
}
=
e
// 清除本地照片
fileList
.
forEach
(
v
=>
{
uni
.
removeSavedFile
({
filePath
:
v
.
filePath
})
})
//清除缓存,重新获取数据
cache
.
removeCache
(
self
.
systemId
)
self
.
isPopShow
=
false
self
.
getListData
()
}
const
photo
=
getApp
().
globalData
.
photo
const
data
=
cache
.
getCache
(
self
.
systemId
)
let
path
=
[]
data
.
result
.
forEach
(
v
=>
{
v
.
list
.
forEach
(
item
=>
{
if
(
item
.
imageList
.
length
>
0
)
path
=
path
.
concat
(
item
.
imageList
)
})
})
for
(
let
i
of
path
)
{
uni
.
removeSavedFile
({
filePath
:
i
})
}
cache
.
removeCache
(
self
.
systemId
)
self
.
isPopShow
=
false
self
.
getListData
()
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment