console.vue 566 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view>
  3. </view>
  4. </template>
  5. <script>
  6. export default {
  7. name: "console",
  8. data() {
  9. return {};
  10. },
  11. onLoad(props) {
  12. this.redirectTo();
  13. },
  14. methods: {
  15. redirectTo() {
  16. let shopId = uni.getStorageSync("shopId");
  17. if (parseInt(shopId) > 0) {
  18. this.$util.pageTo({
  19. url: "/admin/home/workbench",
  20. type: 3
  21. });
  22. } else {
  23. this.$util.pageTo({
  24. url: "/pagesClient/official/index",
  25. type: 2
  26. });
  27. }
  28. }
  29. }
  30. };
  31. </script>
  32. <style lang='scss' scoped>
  33. </style>