|
@@ -12,6 +12,7 @@ import { DatePipe, CommonModule } from '@angular/common';
|
|
|
import { AvatarComponent } from '../../../app/components/avatar/avatar.component';
|
|
|
import { HttpService } from '../../../services/http.service';
|
|
|
import { DeviceService } from '../../../services/device.service';
|
|
|
+import { UpdateService } from '../../../services/update.service';
|
|
|
@Component({
|
|
|
selector: 'app-my',
|
|
|
templateUrl: './my.component.html',
|
|
@@ -34,7 +35,8 @@ export class MyComponent implements OnInit {
|
|
|
public aiServ: AiChatService,
|
|
|
private accServ: AccountService,
|
|
|
private http: HttpService,
|
|
|
- public deviceSer:DeviceService
|
|
|
+ public deviceSer:DeviceService,
|
|
|
+ private updateServ:UpdateService,
|
|
|
) {}
|
|
|
tools: Array<{ icon: string; title: string; path: string }> = [
|
|
|
{
|
|
@@ -270,4 +272,7 @@ export class MyComponent implements OnInit {
|
|
|
console.log(article?.id);
|
|
|
this.router.navigate(['webview',{id:article?.id}]);
|
|
|
}
|
|
|
+ updateVersion(){
|
|
|
+ this.updateServ.updateVersion(true)
|
|
|
+ }
|
|
|
}
|