This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
hly
/
recruitment-wechat-uniapp-241012
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix: 移除打开文件失败时的冗余提示并添加showMenu选项
移除uni.openDocument失败时的冗余toast提示,同时添加showMenu选项以提供更好的用户体验
master
前端-胡立永
1 month ago
parent
00891bc86d
commit
5381ea0c47
1 changed files
with
1 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-5
pages_order/work/postConsult.vue
+ 1
- 5
pages_order/work/postConsult.vue
View File
@ -152,17 +152,13 @@
success
:
(
res
)
=>
{
if
(
res
.
statusCode
===
200
)
{
uni
.
openDocument
(
{
showMenu
:
true
,
filePath
:
res
.
tempFilePath
,
success
:
(
)
=>
{
console
.
log
(
'文件打开成功'
)
}
,
fail
:
(
err
)
=>
{
console
.
log
(
'文件打开失败'
,
err
)
uni
.
showToast
(
{
title
:
'文件已保存,请在文件管理器中查看'
,
icon
:
'none'
,
duration
:
3000
}
)
}
}
)
}
Write
Preview
Loading…
Cancel
Save