From 6e470a2b56697b7594bfc1ae29ed72c43739f690 Mon Sep 17 00:00:00 2001 From: zerosaturation Date: Thu, 4 Jun 2026 18:06:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=AF=A6=E7=BB=86?= =?UTF-8?q?=E9=A1=B5=E5=9B=BE=E7=89=87=E9=97=AA=E7=83=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages/asset-detail/asset-detail.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/pages/asset-detail/asset-detail.vue b/frontend/pages/asset-detail/asset-detail.vue index cd8108d..dde30d8 100644 --- a/frontend/pages/asset-detail/asset-detail.vue +++ b/frontend/pages/asset-detail/asset-detail.vue @@ -97,7 +97,8 @@ 创作者 - + {{ assetData.owner_nickname || '未知' }} @@ -733,10 +734,18 @@ const handleCraftMint = async () => { // 返回逻辑 const handleBack = () => { + // 获取页面栈 + const pages = getCurrentPages(); if (fromParam.value === 'castlove') { uni.reLaunch({ url: '/pages/castlove/mall' }); - } else { + } else if (pages.length > 1) { + // 有上一页,执行返回 uni.navigateBack(); + } else { + // 没有上一页,跳转到square页面 + uni.reLaunch({ + url: "/pages/square/square", + }); } };