feat: show selected products on public /tv board

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 17:16:59 +03:30
co-authored by Cursor
parent a9d0cba909
commit 9d391aeb95
5 changed files with 198 additions and 3 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ export function setupRouterGuards() {
}
function goToLogin(to: RouteLocationNormalized, next: NavigationGuardNext) {
if (to.name === 'buyProduct' || to.name === 'productDetail' || to.name === 'about' || to.name === 'cart') {
if (to.name === 'buyProduct' || to.name === 'productDetail' || to.name === 'about' || to.name === 'cart' || to.name === 'tv') {
return next()
}
if (to.name !== 'login') {
@@ -112,7 +112,7 @@ export function setupRouterGuards() {
return next()
}
} else {
if (['login', '404', 'buyProduct', 'productDetail', 'about', 'cart'].includes(to.name as string)) {
if (['login', '404', 'buyProduct', 'productDetail', 'about', 'cart', 'tv'].includes(to.name as string)) {
return next()
}
goToLogin(to, next)
@@ -126,7 +126,7 @@ export function setupRouterGuards() {
return next()
}
if (['login', '404', 'buyProduct', 'productDetail', 'about', 'cart'].includes(to.name as string)) {
if (['login', '404', 'buyProduct', 'productDetail', 'about', 'cart', 'tv'].includes(to.name as string)) {
return next()
}
return next({ name: 'login' })