修复商品库存与网络摘要并校验订购编号
This commit is contained in:
1 parent
28894e0813
commit
d8224ec5b7
15 files changed
+529
-68
No files matched your search
+2
-1
@@ -21,7 +21,8 @@ const shopPages = new Set([
|
||||
export function isPublicShop(route) {
|
||||
if (Object.hasOwn(route.query || {}, "edit_position")) return false;
|
||||
const path = route.path.replace(/\/+$/, "") || "/";
|
||||
return shopPages.has(path) || /^\/products\/[1-9]\d*$/.test(path);
|
||||
// 动态商品入口由页面统一校验编号;非法编号也应显示公开错误,而不是被误送到登录页。
|
||||
return shopPages.has(path) || /^\/products\/[^/]+$/.test(path);
|
||||
}
|
||||
export function isAuthPage(path) {
|
||||
return authPages.has(path.replace(/\/+$/, "") || "/");
|
||||
|
||||
Reference in new issue
Block a user