unshareable.vue 524 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view>
  3. <page ref="list" />
  4. </view>
  5. </template>
  6. <script>
  7. import page from "./modules/page.vue";
  8. export default {
  9. components: { page },
  10. data() {
  11. return {
  12. }
  13. },
  14. onLoad(options) {
  15. if (options.id) {
  16. this.id = options.id - 0;
  17. setTimeout(() => {
  18. this.$refs.list.getDetail(this.id).then(detail => {
  19. this.detail = detail;
  20. })
  21. }, 100)
  22. }
  23. }
  24. }
  25. </script>
  26. <style></style>