二次编辑商品
This commit is contained in:
@@ -33,6 +33,9 @@ export function getMobilePath(path: string): string {
|
||||
if (path === '/seller/listings/create') {
|
||||
return '/m/seller/listings/create'
|
||||
}
|
||||
if (path.startsWith('/seller/listings/') && path.endsWith('/edit')) {
|
||||
return `/m${path}`
|
||||
}
|
||||
if (path === '/messages' || path.startsWith('/messages/')) {
|
||||
return '/m/messages'
|
||||
}
|
||||
@@ -66,6 +69,7 @@ export function getPcPath(path: string): string {
|
||||
if (subPath === '/register') return '/login' // PC uses /login for both auth actions
|
||||
if (subPath === '/realname') return '/realname'
|
||||
if (subPath === '/seller/listings/create') return '/seller/listings/create'
|
||||
if (subPath.startsWith('/seller/listings/') && subPath.endsWith('/edit')) return subPath
|
||||
|
||||
if (subPath === '/messages') return '/messages'
|
||||
if (subPath.startsWith('/chats/')) return '/messages/' + subPath.substring(7)
|
||||
|
||||
Reference in New Issue
Block a user