|
@@ -1,15 +1,18 @@
|
|
import { Component, OnInit } from '@angular/core';
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
+import { NavController } from '@ionic/angular';
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
selector: 'app-person',
|
|
selector: 'app-person',
|
|
templateUrl: './person.page.html',
|
|
templateUrl: './person.page.html',
|
|
styleUrls: ['./person.page.scss'],
|
|
styleUrls: ['./person.page.scss'],
|
|
})
|
|
})
|
|
-export class PersonPage implements OnInit {
|
|
|
|
|
|
+export class PersonPage {
|
|
|
|
|
|
- constructor() { }
|
|
|
|
|
|
+ constructor(private navCtrl: NavController) {}
|
|
|
|
|
|
- ngOnInit() {
|
|
|
|
|
|
+ goToBlankPage() {
|
|
|
|
+ // 导航到空白页面
|
|
|
|
+ console.log('Navigating to Blank page');
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|