任一存 1 ano atrás
pai
commit
bed7d2bfa8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/components/IframeWrap.vue

+ 1 - 1
src/components/IframeWrap.vue

@@ -36,7 +36,7 @@ onMounted(() => {
   iframeRef.value.contentWindow.goToLogin = () => {
   iframeRef.value.contentWindow.goToLogin = () => {
     location.href = `https://open.weixin.qq.com/connect/qrconnect?appid=wx3d4f2e0cfc3b8e54&redirect_uri=https%3A%2F%2Fsit-wuxicishan.4dage.com%2F%23%2Flogin-temp&response_type=code&scope=snsapi_login&state=${encodeURIComponent(route.name)}#wechat_redirect`
     location.href = `https://open.weixin.qq.com/connect/qrconnect?appid=wx3d4f2e0cfc3b8e54&redirect_uri=https%3A%2F%2Fsit-wuxicishan.4dage.com%2F%23%2Flogin-temp&response_type=code&scope=snsapi_login&state=${encodeURIComponent(route.name)}#wechat_redirect`
   }
   }
-  iframeRef.value.openWindow = function(url) {
+  iframeRef.value.contentWindow.openWindow = function(url) {
     console.log(`iframe: openWindow(${url})`)
     console.log(`iframe: openWindow(${url})`)
     if ($isSafari) {
     if ($isSafari) {
       // 不知道行不行,先试试
       // 不知道行不行,先试试