1
This commit is contained in:
1 parent
754c24615c
commit
ae00a5c1af
12 files changed
+210
-32
No files matched your search
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user