Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
4cc9f848
Commit
4cc9f848
authored
May 21, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉首次登陆更新检测
parent
248cedd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
src/app/app.component.ts
+2
-7
No files found.
src/app/app.component.ts
View file @
4cc9f848
...
@@ -79,14 +79,9 @@ export class AppComponent implements OnInit, OnDestroy {
...
@@ -79,14 +79,9 @@ export class AppComponent implements OnInit, OnDestroy {
}
}
//只在微信端判断缓存
//只在微信端判断缓存
if
(
this
.
lifeCommonService
.
checkDeviceType
()
===
'3'
)
{
if
(
this
.
lifeCommonService
.
checkDeviceType
()
===
'3'
)
{
//如果本地没有版本号
刷新并
设置缓存
//如果本地没有版本号设置缓存
if
(
!
localStorage
.
getItem
(
'Version'
))
{
if
(
!
localStorage
.
getItem
(
'Version'
))
{
this
.
isNeedAlert
=
true
;
localStorage
.
setItem
(
'Version'
,
this
.
currentVersion
);
this
.
dialogInfo
=
{
title
:
null
,
content
:
{
value
:
'检测到新版本'
,
align
:
'center'
},
footer
:
[{
value
:
'更新'
,
routerLink
:
''
,
className
:
'weui-dialog__btn_primary'
}],
};
}
else
{
}
else
{
const
Version
=
localStorage
.
getItem
(
'Version'
);
const
Version
=
localStorage
.
getItem
(
'Version'
);
//如果缓存有版本号对比本地和接口版本
//如果缓存有版本号对比本地和接口版本
...
...
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