1
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React, { useState } from "react";
|
||||
import { View, Text, Image } from "@tarojs/components";
|
||||
import { View, Text } from "@tarojs/components";
|
||||
import Taro from "@tarojs/taro";
|
||||
import img from "@/config/images";
|
||||
import { redirectTo } from "@/utils/navigation";
|
||||
import "./index.scss";
|
||||
import PublishMenu from "../PublishMenu";
|
||||
export type currentPageType = "games" | "message" | "personal";
|
||||
@@ -24,12 +23,6 @@ const GuideBar = (props) => {
|
||||
},
|
||||
];
|
||||
|
||||
const handlePublish = () => {
|
||||
Taro.navigateTo({
|
||||
url: "/publish_pages/publishBall/index",
|
||||
});
|
||||
};
|
||||
|
||||
const handlePageChange = (code: string) => {
|
||||
if (code === currentPage) {
|
||||
return;
|
||||
@@ -52,7 +45,7 @@ const GuideBar = (props) => {
|
||||
if (code === "list") {
|
||||
url = "/game_pages/list/index"
|
||||
}
|
||||
Taro.redirectTo({
|
||||
redirectTo({
|
||||
url: url,
|
||||
}).then(() => {
|
||||
(Taro as any).pageScrollTo({
|
||||
|
||||
Reference in New Issue
Block a user