yangchenggong1_wd

fix:登录无响应(路由问题)

@@ -9,6 +9,12 @@ export class WDRouterPage { @@ -9,6 +9,12 @@ export class WDRouterPage {
9 this.pagePath = pagePath 9 this.pagePath = pagePath
10 } 10 }
11 11
  12 + static getBundleInfo(){
  13 + let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT)
  14 + return `@bundle:${bundleInfo.name}/${"phone"}/${"ets/pages/MainPage"}`
  15 + }
  16 +
  17 +
12 url() { 18 url() {
13 let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT) 19 let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_DEFAULT)
14 return `@bundle:${bundleInfo.name}/${this.moduleName}/${this.pagePath}` 20 return `@bundle:${bundleInfo.name}/${this.moduleName}/${this.pagePath}`
@@ -305,7 +305,7 @@ struct LoginPage { @@ -305,7 +305,7 @@ struct LoginPage {
305 router.back({ 305 router.back({
306 params: { userName: data.userName, 306 params: { userName: data.userName,
307 userId:data.id}, 307 userId:data.id},
308 - url: 'pages/MainPage' 308 + url: `${WDRouterPage.getBundleInfo()}`
309 } 309 }
310 ) 310 )
311 }) 311 })