diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php
index 7d64c99..a899b62 100644
--- a/resources/views/admin/dashboard.blade.php
+++ b/resources/views/admin/dashboard.blade.php
@@ -117,7 +117,10 @@
最近平台订单
-
查看全部
+ @php
+ $platformOrdersIndexUrl = \App\Support\BackUrl::withBack('/admin/platform-orders', $selfWithoutBack);
+ @endphp
+
查看全部
diff --git a/tests/Feature/AdminDashboardRecentPlatformOrdersViewAllLinkShouldCarryBackTest.php b/tests/Feature/AdminDashboardRecentPlatformOrdersViewAllLinkShouldCarryBackTest.php
new file mode 100644
index 0000000..bc8e087
--- /dev/null
+++ b/tests/Feature/AdminDashboardRecentPlatformOrdersViewAllLinkShouldCarryBackTest.php
@@ -0,0 +1,32 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_dashboard_recent_platform_orders_view_all_link_should_carry_back(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $res = $this->get('/admin');
+ $res->assertOk();
+
+ $res->assertSee('href="/admin/platform-orders?back=%2Fadmin"', false);
+ $res->assertDontSee('&back=', false);
+ }
+}