1
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { x_openweb } from "x_library_s";
|
||||
import { BusinessError } from "@kit.BasicServicesKit";
|
||||
|
||||
export function openWeb(url : string) {
|
||||
const context = UTSHarmony.getCurrentWindow()!.getUIContext();
|
||||
x_openweb(context,url)
|
||||
.catch((error:boolean)=>{
|
||||
console.error("TMUI","打开失败")
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user