index.vue 1.0 KB

123456789101112131415161718192021
  1. <template>
  2. <web-view class="webview" :src="decodeURIComponent(src)"></web-view>
  3. </template>
  4. <script>
  5. export default {
  6. data() {
  7. return {
  8. src: encodeURIComponent(""),
  9. };
  10. },
  11. onLoad: function (option) {
  12. this.src = `${option.src}?token=${option.token}&name=${option.name}&code=${option.code}`;
  13. },
  14. };
  15. </script>
  16. <style lang="scss">
  17. .webview {
  18. }
  19. </style>