index.vue 532 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view class="content">
  3. <button @tap="toPath('/pagesCommon/test/index')" size="mini">分包一测试页面</button>
  4. <button @tap="toPath('/pagesHome/home/index')" size="mini">系统首页</button>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. }
  12. },
  13. onLoad() {
  14. const that = this;
  15. that.toPath('/pagesHome/home/index')
  16. },
  17. methods: {
  18. toPath(e) {
  19. uni.navigateTo({
  20. url: e
  21. })
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. .content {
  28. text-align: center;
  29. }
  30. </style>