index.vue 524 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div>
  3. <web-view :src="src"></web-view>
  4. </div>
  5. </template>
  6. <script>
  7. import utils from "@/utils/index";
  8. export default {
  9. data() {
  10. return {
  11. query: {},
  12. src: "",
  13. params:""
  14. };
  15. },
  16. methods: {
  17. name() {},
  18. },
  19. onLoad(query) {
  20. this.query = query;
  21. this.params = query.params
  22. console.log(this.params)
  23. JSON.parse(this.params)
  24. this.src = this.query.src+'?'+utils.mapToUrlQuery(JSON.parse(this.params||{}));
  25. },
  26. };
  27. </script>
  28. <style lang="scss" scoped>
  29. </style>