Explorar el Código

修改web传参数的方式

JXDS18FUJT hace 2 años
padre
commit
35f3051b02
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/pages/extraWeb/index.vue

+ 2 - 2
src/pages/extraWeb/index.vue

@@ -19,8 +19,8 @@ export default {
   },
   onLoad(query) {
     this.query = query;
-    this.params = query.params
-    console.log(this.params)
+    this.params = query.params||"{}"
+    
     JSON.parse(this.params)
     this.src = this.query.src+'?'+utils.mapToUrlQuery(JSON.parse(this.params||{}));
   },