1
0
suochencheng 7 лет назад
Родитель
Сommit
ababdb0bd3
1 измененных файлов с 2 добавлено и 1 удалено
  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]);
 
         },
     },