Commit e718eab4 by 李伟康

```

fix(app): 修复lastPath为空时的路由处理问题

当state.lastPath为undefined或null时,将其默认设置为空字符串,
避免在路由处理过程中出现类型错误,确保URL分割和替换操作正常执行。
```
1 parent 778fd751
...@@ -50,7 +50,7 @@ const actions = { ...@@ -50,7 +50,7 @@ const actions = {
// phone, // phone,
// }) // })
// if (res) { // if (res) {
let route = state.lastPath, let route = state.lastPath || '',
[jumpUrl] = window.location.href.split('/#/') [jumpUrl] = window.location.href.split('/#/')
route = route.replace('.', '/') route = route.replace('.', '/')
util.setLocalStorage('ww_userInfo', userInfo) util.setLocalStorage('ww_userInfo', userInfo)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!