console.vue 612 B

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