Toggle navigation
Toggle navigation
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
Authored by
yangchenggong1_wd
2024-03-29 17:51:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd274ff34a34fccc224a0c17d06c5626289243a0
cd274ff3
1 parent
a21b156a
fix:登录无响应(路由问题)
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterPage.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginPage.ets
sight_harmony/commons/wdRouter/src/main/ets/router/WDRouterPage.ets
View file @
cd274ff
...
...
@@ -9,6 +9,12 @@ export class WDRouterPage {
this.pagePath = pagePath
}
static getBundleInfo(){
let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT)
return `@bundle:${bundleInfo.name}/${"phone"}/${"ets/pages/MainPage"}`
}
url() {
let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT)
return `@bundle:${bundleInfo.name}/${this.moduleName}/${this.pagePath}`
...
...
sight_harmony/features/wdLogin/src/main/ets/pages/login/LoginPage.ets
View file @
cd274ff
...
...
@@ -305,7 +305,7 @@ struct LoginPage {
router.back({
params: { userName: data.userName,
userId:data.id},
url:
'pages/MainPage'
url:
`${WDRouterPage.getBundleInfo()}`
}
)
})
...
...
Please
register
or
login
to post a comment