From 54a83bad5d16c75f3b2d633b936ddad76729bc46 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Mon, 20 Jul 2026 19:12:11 +0800 Subject: [PATCH] refactor(top-nav-bar): add custom back prop - add customBack prop to enable explicit custom back handling - rewrite back navigation logic to use the new prop instead of inferring from emit listeners - remove unused getCurrentInstance import - update three AIGC page components to use the custom-back prop --- src/components/TopNavBar/index.vue | 25 +++++-------------- .../pointsDetails/pointsDetails.vue | 2 +- src/pages-aigc/record/record.vue | 2 +- src/pages-aigc/sharedWork/sharedWork.vue | 2 +- 4 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/components/TopNavBar/index.vue b/src/components/TopNavBar/index.vue index c0dc8ee..bb38505 100644 --- a/src/components/TopNavBar/index.vue +++ b/src/components/TopNavBar/index.vue @@ -31,7 +31,7 @@