Przeglądaj źródła

20181221通用IFRAME

suochencheng 7 lat temu
rodzic
commit
ababdb0bd3
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/main/vue/src/pages/CommonIframe.vue

+ 2 - 1
src/main/vue/src/pages/CommonIframe.vue

@@ -21,7 +21,8 @@ export default {
     methods: {
         getIframeSrc() {
 
-            this.iframeSrc = this.$route.query.code;
+            console.log(decodeURIComponent(window.location.href.split('?code=')[1]));
+            this.iframeSrc = decodeURIComponent(window.location.href.split('?code=')[1]);
 
         },
     },