|
@@ -19,6 +19,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref, inject, onMounted, computed } from "vue"
|
|
import { ref, inject, onMounted, computed } from "vue"
|
|
import { useRoute, useRouter } from "vue-router"
|
|
import { useRoute, useRouter } from "vue-router"
|
|
|
|
+import { ElMessageBox } from 'element-plus'
|
|
|
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
@@ -39,9 +40,10 @@ onMounted(() => {
|
|
iframeRef.value.contentWindow.openWindow = function(url) {
|
|
iframeRef.value.contentWindow.openWindow = function(url) {
|
|
console.log(`iframe: openWindow(${url})`)
|
|
console.log(`iframe: openWindow(${url})`)
|
|
if ($isSafari) {
|
|
if ($isSafari) {
|
|
- // 不知道行不行,先试试
|
|
|
|
- let windowObjectReference = window.open()
|
|
|
|
- windowObjectReference.location.href = url
|
|
|
|
|
|
+ ElMessageBox.confirm(`即将打开网址:${url}`)
|
|
|
|
+ .then(() => {
|
|
|
|
+ window.open(url, '_blank')
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
window.open(url)
|
|
window.open(url)
|
|
}
|
|
}
|