feat:修改路由

This commit is contained in:
zerosaturation 2026-07-13 15:23:50 +08:00
parent c4b8800ea7
commit bf92ab3ac8
9 changed files with 11 additions and 11 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -72,7 +72,7 @@ const navItems = [
name: '我的',
icon: '/static/icon/square.png',
angle: 57, //
path: '/pages/profile/myWorks'
path: '/pages/profile/profile'
}
];

View File

@ -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",
});
};

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {