可在module.json5配置文件,配置querySchemes,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/module-configuration-file-V5再使用bundleManager.canOpenLink接口来进行判断,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-bundlemanager-V5\#bundlemanagercanopenlink12示例demo参考:https://developer.huawei.com/consumer/cn/blog/topic/03154191594256003
可在module.json5配置文件,配置querySchemes,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/module-configuration-file-V5
再使用bundleManager.canOpenLink接口来进行判断,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-bundlemanager-V5\#bundlemanagercanopenlink12
示例demo参考:https://developer.huawei.com/consumer/cn/blog/topic/03154191594256003