Przeglądaj źródła

0210331-弹窗修改

0210331 4 miesięcy temu
rodzic
commit
bf705c010d
2 zmienionych plików z 38 dodań i 37 usunięć
  1. 34 33
      src/app/app-routing.module.ts
  2. 4 4
      src/modules/tab/tree/tree.page.ts

+ 34 - 33
src/app/app-routing.module.ts

@@ -1,37 +1,38 @@
-import { NgModule } from '@angular/core';
-import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
-
-const routes: Routes = [
-  {
-    path: '',
-    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
-  },
-  {
-    path: 'user',
-    loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
-  },
-  {
-    path: "tree",
-    loadChildren: () => import('../modules/tab/tree/tree.module').then(m => m.TreePageModule)
-  },
-  {
-    path: 'bounty-store',
-    loadChildren: () => import('../app/bounty-store/bounty-store.module').then(mod => mod.BountyStorePageModule)
-  },
-  {
-    path: 'memo',
-    loadChildren: () => import('../app/memo/memo.module').then(m => m.MemoPageModule)
-  },
  {
+import { NgModule } from '@angular/core';
+import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
+
+const routes: Routes = [
+  {
+    path: '',
+    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
+  },
+  {
+    path: 'user',
+    loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
+  },
+  {
+    path: "tree",
+    loadChildren: () => import('../modules/tab/tree/tree.module').then(m => m.TreePageModule)
+  },
+  {
+    path: 'bounty-store',
+    loadChildren: () => import('../app/bounty-store/bounty-store.module').then(mod => mod.BountyStorePageModule)
+  },
+  {
+    path: 'memo',
+    loadChildren: () => import('../app/memo/memo.module').then(m => m.MemoPageModule)
+  },
+  {
     path: 'ai-chat',
     loadChildren: () => import('./ai-chat/ai-chat.module').then( m => m.AiChatPageModule)
   },
 
-
-];
-@NgModule({
-  imports: [
-    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
-  ],
-  exports: [RouterModule]
-})
-export class AppRoutingModule {}
+
+];
+@NgModule({
+  imports: [
+    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
+  ],
+  exports: [RouterModule]
+})
+export class AppRoutingModule {}

+ 4 - 4
src/modules/tab/tree/tree.page.ts

@@ -89,11 +89,11 @@ export class TreePage implements OnInit, OnDestroy {
     this.isPaused = true; // Ensure the pause icon is dark when exiting
     this.exitClicked = true; // Set exit button clicked to true
     const alert = await this.alertController.create({
-      header: 'Confirm Exit',
-      message: 'Are you sure you want to exit and reset the timer?',
+      header: '确认退出',
+      message: '你确定想要退出并停止计时吗?',
       buttons: [
         {
-          text: 'Cancel',
+          text: '取消',
           role: 'cancel',
           handler: () => {
             console.log('Exit cancelled');
@@ -101,7 +101,7 @@ export class TreePage implements OnInit, OnDestroy {
           }
         },
         {
-          text: 'Confirm',
+          text: '确认',
           handler: () => {
             this.resetTimer();
             this.navCtrl.back();