Commit 671df03 1 parent fa6b2de commit 671df03 Copy full SHA for 671df03
File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -573,19 +573,20 @@ export class ResourceManager {
573
573
Logger . warn ( `refId:${ refId } is not find in this._editorResourceConfig.` ) ;
574
574
return Promise . resolve ( null ) ;
575
575
}
576
- const remoteUrl = resourceConfig . path ;
577
- const queryPath = new URL ( remoteUrl ) . search ;
578
- let url = resourceConfig . virtualPath + queryPath ;
579
- if ( key ) {
580
- url += ( url . indexOf ( "?" ) > - 1 ? "&" : "?" ) + "q=" + key ;
581
- }
582
-
576
+ const url = resourceConfig . path ;
583
577
promise = this . load < any > ( {
584
578
url,
585
579
type : resourceConfig . type
586
580
} ) ;
587
581
}
588
- return promise . then ( ( item ) => ( isClone ? item . clone ( ) : item ) ) ;
582
+ return promise . then ( ( item ) => {
583
+ let resource = item ;
584
+ if ( key ) {
585
+ const paths = this . _parseQueryPath ( key ) ;
586
+ resource = this . _getResolveResource ( item , paths ) ;
587
+ }
588
+ return isClone ? resource . clone ( ) : resource ;
589
+ } ) ;
589
590
}
590
591
591
592
/**
You can’t perform that action at this time.
0 commit comments