0225138 пре 4 месеци
родитељ
комит
b25448345a
2 измењених фајлова са 11 додато и 13 уклоњено
  1. 6 8
      src/app/dynamic/dynamic.page.ts
  2. 5 5
      src/app/tabs/tabs-routing.module.ts

+ 6 - 8
src/app/dynamic/dynamic.page.ts

@@ -4,9 +4,6 @@ Parse.initialize("dev");
 (Parse as any).serverURL = 'http://web2023.fmode.cn:9999/parse'
 import * as Parse from 'parse';
 import { NavController } from '@ionic/angular';
-
-import { Router } from '@angular/router';  
-
 // constructor(private Router: Router) {}
 @Component({
   selector: 'app-dynamic',
@@ -19,11 +16,11 @@ export class DynamicPage implements OnInit {
   newBiaoti: string = '';  // 新增的属性
   newNeirong: string = ''; // 新增的属性
   newTime: string = '';    // 新增的属性
-  navCtrl: any;
-  navController: any;
+  // navCtrl: any;
+  // navController: any;
   
-
-  constructor(private parseService: ParseService) { }
+  constructor(private navCtrl: NavController,private parseService: ParseService) { }
+  // constructor(private parseService: ParseService) { }
 
   ngOnInit() {
     this.loadDongTai();
@@ -56,7 +53,8 @@ export class DynamicPage implements OnInit {
   async submitDongTai() {
     console.log(111);
     // this.navCtrl.navigateForward('../../app/tab3');
-    this.navController.back();
+    this.navCtrl.back();
+
   }
 }
   

+ 5 - 5
src/app/tabs/tabs-routing.module.ts

@@ -30,11 +30,11 @@ const routes: Routes = [
       }
     ]
   },
-  // {
-  //   path: '',
-  //   redirectTo: '/tabs/tab1',
-  //   pathMatch: 'full'
-  // }
+  {
+    path: '',
+    redirectTo: '/tabs/tab1',
+    pathMatch: 'full'
+  }
 ];
 
 @NgModule({