• This project
    • Loading...
  • Sign in

developOne / harmonyPool

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • harmonyPool
  • ..
  • utils
  • RouteManager.ets
  • desc:同步 4.0 · 9695a1d3
    9695a1d3 Browse Files
    yangchenggong1_wd authored 2024-03-28 14:56:15 +0800
RouteManager.ets 405 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

import router from '@ohos.router';
const TAG = 'RouteManager';

/**
 * 跳转页面封装类
 */
class RouteManager{

  jumpNewPage(target_url: string,params?: Object){
    router.pushUrl({
      url: target_url,
      params
    }).catch((error: Error) => {
      console.log(TAG,JSON.stringify(error));
    });
  }

}

const routeManager = new RouteManager()
export default routeManager as RouteManager