feat:修改路由
This commit is contained in:
parent
c4b8800ea7
commit
bf92ab3ac8
@ -228,7 +228,7 @@ const chooseImage = () => {
|
||||
title: '获取文件信息失败',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
}),
|
||||
fail: guard((err) => {
|
||||
@ -527,7 +527,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/profile/myWorks'
|
||||
'/pages/profile/profile'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -39,7 +39,7 @@ const handleTabChange = (newTab) => {
|
||||
"/pages/starbook/index",
|
||||
"/pages/castlove/mall",
|
||||
"/pages/starcity/index",
|
||||
"/pages/profile/myWorks",
|
||||
"/pages/profile/profile",
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -72,7 +72,7 @@ const navItems = [
|
||||
name: '我的',
|
||||
icon: '/static/icon/square.png',
|
||||
angle: 57, // 右下方
|
||||
path: '/pages/profile/myWorks'
|
||||
path: '/pages/profile/profile'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -479,14 +479,14 @@ const handleAvatarClick = () => {
|
||||
if (pages.length > 0) {
|
||||
const currentPage = pages[pages.length - 1];
|
||||
// 检查当前页面是否是个人信息页面
|
||||
if (currentPage.route === "pages/profile/profile") {
|
||||
if (currentPage.route === "/pages/profile/myWorks") {
|
||||
// 已经在个人信息页面,不执行跳转
|
||||
return;
|
||||
}
|
||||
}
|
||||
const api = getPreloadApi();
|
||||
(api || uni).navigateTo({
|
||||
url: "/pages/profile/profile",
|
||||
url: "/pages/profile/myWorks",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/profile/myWorks'
|
||||
'/pages/profile/profile'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -272,7 +272,7 @@ const handleTabChange = (newTab) => {
|
||||
"/pages/starbook/index",
|
||||
"/pages/castlove/mall",
|
||||
"/pages/starcity/index",
|
||||
"/pages/profile/myWorks",
|
||||
"/pages/profile/profile",
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/profile/myWorks'
|
||||
'/pages/profile/profile'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/profile/myWorks'
|
||||
'/pages/profile/profile'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -359,7 +359,7 @@ function handleTabChange(newTab) {
|
||||
"/pages/starbook/index", // 星册
|
||||
"/pages/castlove/mall", // 铸爱
|
||||
"/pages/starcity/index", // 星城
|
||||
"/pages/profile/myWorks", // 广场
|
||||
"/pages/profile/profile", // 广场
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < tabRoutes.length) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user