This commit is contained in:
dongchangxi committed 2024-02-05 15:17:02 +08:00
1 parent 754c24615c
commit ae00a5c1af
12 files changed
+210 -32

No files matched your search

+12 -9
View File
@@ -1,24 +1,27 @@
<script setup>
import {reactive} from 'vue'
import {BrowserOpenURL} from '../../wailsjs/runtime/runtime'
import {ShopUrl} from '../../wailsjs/go/main/App'
//调用系统的浏览器打开网页,不在应用内打开
function runWebUrl(url) {
BrowserOpenURL(url)
}
// runWebUrl("https://shop.suwa3d.com/")
// function runWebUrl(url) {
// BrowserOpenURL(url)
// }
// // runWebUrl("https://shop.suwa3d.com/")
//在应用内打开网页
function openWebUrl(url) {
window.location.href = url
function openWebUrl() {
ShopUrl().then(result => {
window.location.href = result
})
}
openWebUrl("https://shop.suwa3d.com/")
openWebUrl()
</script>
<template>
<main>
<!-- AAAAAAAAAAAAAA -->
</main>
</template>