增加站内信未读提醒和后台通知中心+txt 校验

This commit is contained in:
yml2213
2026-06-19 15:24:15 +08:00
parent 8d5094a8d0
commit a4cdc3e806
30 changed files with 1836 additions and 53 deletions
+3 -1
View File
@@ -27,6 +27,7 @@ export function getMobilePath(path: string): string {
return `/m${path}`
}
if (path === '/realname') return '/m/realname'
if (path === '/notifications') return '/m/notifications'
if (path === '/login') return '/m/login'
if (path === '/register') return '/m/register'
@@ -43,7 +44,7 @@ export function getMobilePath(path: string): string {
// PC-only views that don't have mobile counterparts go to mobile profile as fallback
if (path === '/wallet/withdrawal') return '/m/wallet/withdrawal'
if (path === '/wallet' || path === '/notifications' || path.startsWith('/seller')) {
if (path === '/wallet' || path.startsWith('/seller')) {
return '/m/profile'
}
@@ -70,6 +71,7 @@ export function getPcPath(path: string): string {
if (subPath === '/login') return '/login'
if (subPath === '/register') return '/login' // PC uses /login for both auth actions
if (subPath === '/realname') return '/realname'
if (subPath === '/notifications') return '/notifications'
if (subPath === '/wallet/withdrawal') return '/wallet/withdrawal'
if (subPath === '/seller/listings/create') return '/seller/listings/create'
if (subPath.startsWith('/seller/listings/') && subPath.endsWith('/edit')) return subPath