feat: improve the open link function

This commit is contained in:
misitebao 2021-09-13 20:44:29 +08:00
parent 7e65bb6d1a
commit cb9623027a
2 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ export default {
const onClickhandle = () => {
// You cannot use the a tag directly, you need to call the Go method here to open the link using the default browser.
// 使aGo使
console.log(i18n.global.t("global.click-link") + props.href)
alert(i18n.global.t("global.click-link") + props.href + '\n\n' + i18n.global.t("global.not-supported"))
window.runtime.BrowserOpenURL(props.href)
}
return {

View File

@ -33,7 +33,7 @@ func main() {
Frameless: false,
StartHidden: false,
HideWindowOnClose: false,
RGBA: 0x000000FF,
RGBA: &options.RGBA{255,255,255,255},
Assets: assets,
Windows: &windows.Options{
WebviewIsTransparent: true,