<script>
export default {
  methods: {},
  onShow() {
    uni.getStorage({
      key: "laocui_user_token",
      success: function (res) {
        // console.log("resresresresresresresresresres", res);
        // uni.switchTab({
        //   url: "/pages/index/index",
        // });
      },
      fail(res) {
        console.log("resresresresresresresresresres", res);

        uni.redirectTo({
          url: "/pages/login/login",
        });
      },
    });
  },
};
</script>

<style lang="scss">
@import "./common/uni.css";
@import "/wxcomponents/weapp/dist/common/index.wxss";
@import "./common/style/index.scss";

//@media screen and (min-width: 768px) {
//	body {
//		overflow-y: scroll;
//	}
//}
</style>
