匹配有参数的路由

dev/mobile
Jimmy Liow 2 years ago
parent c5c777653e
commit 2be62c9938

@ -49,11 +49,13 @@ function AuthApp() {
}, [])
let defaultPath = 'follow'
let defaultPath = '/order/follow'
if (href !== '/') {
const splitPath = href.split('/')
defaultPath = href
if (splitPath.length > 2) {
defaultPath = '/' + splitPath[1] + '/' + splitPath[2]
}
}
const {

Loading…
Cancel
Save