Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
897b5532
Commit
897b5532
authored
Jun 06, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序更新 去除取消按钮
parent
9932426e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
App.vue
App.vue
+2
-1
No files found.
App.vue
View file @
897b5532
...
@@ -48,7 +48,8 @@ export default {
...
@@ -48,7 +48,8 @@ export default {
updateManager
.
onUpdateReady
(
function
()
{
updateManager
.
onUpdateReady
(
function
()
{
uni
.
showModal
({
uni
.
showModal
({
title
:
'更新检测'
,
// 此处可自定义提示标题
title
:
'更新检测'
,
// 此处可自定义提示标题
content
:
'检测到新版本,是否重启小程序?'
,
// 此处可自定义提示消息内容
showCancel
:
false
,
content
:
'检测到新版本,请点击确认按钮重启小程序?'
,
// 此处可自定义提示消息内容
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
...
...
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