Browse Source

20181221通用IFRAME

suochencheng 7 years ago
parent
commit
ababdb0bd3
1 changed files with 2 additions and 1 deletions
  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: {
     methods: {
         getIframeSrc() {
         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]);
 
 
         },
         },
     },
     },