Fork自 GitCode / 1024程序员开源挑战赛(10.23-11.14)
export const openUrl = (url) => { if ("utools" in window && "shellOpenExternal" in window.utools) { return window.utools.shellOpenExternal(url) } return window.open(url); }