import { View, Text, Image } from "@tarojs/components"; import { useLoad } from "@tarojs/taro"; import Taro from "@tarojs/taro"; import { AtAvatar, AtTag, AtIcon, AtTabBar, AtButton } from "taro-ui"; import "./index.scss"; import beijing from "@/images/city/beijing.jpg"; import guangzhou from "@/images/city/guangzhou.jpg"; import shanghai from "@/images/city/shanghai.jpg"; import shenzhen from "@/images/city/shenzhen.jpg"; import touxiang from "@/images/index/touxiang.jpg"; import { useEffect, useState } from "react"; const my = () => { return ( my {/* 底部tabbar */} { console.log("current", current); if (current !== 1) { Taro.redirectTo({ url: "/pages/index/index", }); } }} current={1} /> ); }; export default my;