Commit 4cc9f848 by sunchao

去掉首次登陆更新检测

parent 248cedd9
......@@ -79,14 +79,9 @@ export class AppComponent implements OnInit, OnDestroy {
}
//只在微信端判断缓存
if (this.lifeCommonService.checkDeviceType() === '3') {
//如果本地没有版本号刷新并设置缓存
//如果本地没有版本号设置缓存
if (!localStorage.getItem('Version')) {
this.isNeedAlert = true;
this.dialogInfo = {
title: null,
content: { value: '检测到新版本', align: 'center' },
footer: [{ value: '更新', routerLink: '', className: 'weui-dialog__btn_primary' }],
};
localStorage.setItem('Version', this.currentVersion);
} else {
const Version = localStorage.getItem('Version');
//如果缓存有版本号对比本地和接口版本
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment