From 720cefd022f85b460f1832857ee26874033d04c8 Mon Sep 17 00:00:00 2001 From: chickenlj Date: Sun, 8 Sep 2024 16:22:59 +0800 Subject: [PATCH] fix homepage path --- .../org/apache/dubbo/shop/frontend/FrontendController.java | 2 +- .../frontend/src/main/resources/templates/cart.html | 4 ++-- .../frontend/src/main/resources/templates/header.html | 4 ++-- .../frontend/src/main/resources/templates/home.html | 2 +- .../frontend/src/main/resources/templates/order.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/online_bontique_demo/frontend/src/main/java/org/apache/dubbo/shop/frontend/FrontendController.java b/online_bontique_demo/frontend/src/main/java/org/apache/dubbo/shop/frontend/FrontendController.java index 7c0d797dfc..6218aae963 100644 --- a/online_bontique_demo/frontend/src/main/java/org/apache/dubbo/shop/frontend/FrontendController.java +++ b/online_bontique_demo/frontend/src/main/java/org/apache/dubbo/shop/frontend/FrontendController.java @@ -195,7 +195,7 @@ public String getAds(@RequestParam List contextKeys, Model model) { return "ad"; } - @GetMapping({"/static"}) + @GetMapping({"/"}) public String listUser(Model model) { model.addAttribute("is_cymbal_brand", false); ListProductsResponse response = productCatalogService.listProducts(new Empty()); diff --git a/online_bontique_demo/frontend/src/main/resources/templates/cart.html b/online_bontique_demo/frontend/src/main/resources/templates/cart.html index 83c5f22af1..7b168f4dec 100644 --- a/online_bontique_demo/frontend/src/main/resources/templates/cart.html +++ b/online_bontique_demo/frontend/src/main/resources/templates/cart.html @@ -44,7 +44,7 @@

Your shopping cart is empty!

Items you add to your shopping cart will appear here.

- Continue Shopping + Continue Shopping
@@ -64,7 +64,7 @@

Cart (0)

- + Continue Shopping diff --git a/online_bontique_demo/frontend/src/main/resources/templates/header.html b/online_bontique_demo/frontend/src/main/resources/templates/header.html index 857aa9b1c4..cd3607f83c 100644 --- a/online_bontique_demo/frontend/src/main/resources/templates/header.html +++ b/online_bontique_demo/frontend/src/main/resources/templates/header.html @@ -23,7 +23,7 @@ - + @@ -37,7 +37,7 @@