fix: add product page

This commit is contained in:
2026-04-17 08:04:21 +02:00
parent 2d9e45b81c
commit 52d58d05eb
2 changed files with 27 additions and 2 deletions

View File

@@ -71,7 +71,8 @@ INSERT IGNORE INTO `b2b_routes` (`id`, `name`, `path`, `component`, `meta`, `act
(20, 'customer-products', 'products', '/components/customer/PageProducts.vue', '{ "guest":true, "name": "Products" }', 1), (20, 'customer-products', 'products', '/components/customer/PageProducts.vue', '{ "guest":true, "name": "Products" }', 1),
(21, 'customer-product-details', 'products/:product_id', '/components/customer/PageProduct.vue', '{ "guest":true, "name": "Products" }', 1), (21, 'customer-product-details', 'products/:product_id', '/components/customer/PageProduct.vue', '{ "guest":true, "name": "Products" }', 1),
(22, 'customer-page-carts', 'carts', '/components/customer/PageCarts.vue', '{ "guest":true, "name": "Carts" }', 1), (22, 'customer-page-carts', 'carts', '/components/customer/PageCarts.vue', '{ "guest":true, "name": "Carts" }', 1),
(24, 'customer-search-products', 'search-products', '/components/customer/PageSearchProducts.vue', '{ "guest":true, "name": "Carts" }', 1); (24, 'customer-search-products', 'search-products', '/components/customer/PageSearchProducts.vue', '{ "guest":true, "name": "Carts" }', 1),
(25, 'admin-add-product', 'add-product', '/components/admin/AddProduct.vue', '{ "guest":true, "name": "Add Product" }', 1);
CREATE TABLE IF NOT EXISTS b2b_top_menu ( CREATE TABLE IF NOT EXISTS b2b_top_menu (
menu_id INT AUTO_INCREMENT NOT NULL, menu_id INT AUTO_INCREMENT NOT NULL,
@@ -309,6 +310,28 @@ INSERT IGNORE INTO `b2b_top_menu` (`menu_id`, `label`, `parent_id`, `params`, `a
"locale": "" "locale": ""
} }
} }
}', 1, 1),
(18, '{
"name": "admin-add-product",
"trans": {
"pl": {
"label": "Dodaj produkt"
},
"en": {
"label": "Add Product"
},
"de": {
"label": "Produkt hinzufügen"
}
},
"icon": "proicons:cart1"
}', 1, '{
"route": {
"name": "admin-add-product",
"params": {
"locale": ""
}
}
}', 1, 1); }', 1, 1);

View File

@@ -115,5 +115,7 @@ INSERT INTO `b2b_route_roles` (`route_id`, `role_id`) VALUES
(20, '1'), (20, '1'),
(21, '1'), (21, '1'),
(22, '1'), (22, '1'),
(24, '1'); (24, '1'),
(25, '2'),
(25, '3');
-- +goose Down -- +goose Down