mirror of
https://github.com/misitebao/wails-template-vue
synced 2025-02-23 21:12:14 +08:00
feat: improve the open link function
This commit is contained in:
parent
7e65bb6d1a
commit
cb9623027a
@ -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.
|
||||
// 不能直接使用a标签,需要在这里调用Go方法以使用默认浏览器打开链接。
|
||||
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 {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user