wxOpendata.vue 378 B

123456789101112131415161718192021
  1. <template>
  2. <ww-open-data :type="type" :openid="openid" />
  3. </template>
  4. <script>
  5. export default {
  6. name: "wwOpenDAta",
  7. props: ["type", "openid"],
  8. watch: {
  9. openid(item) {
  10. this.$nextTick(() => {
  11. window.WWOpenData.bind(this.$el);
  12. });
  13. }
  14. },
  15. mounted() {
  16. this.$nextTick(() => {
  17. window.WWOpenData.bind(this.$el);
  18. });
  19. },
  20. };
  21. </script>