提交 3d3da8a1 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 74f029fc
...@@ -102,14 +102,14 @@ export default class API { ...@@ -102,14 +102,14 @@ export default class API {
if (data) { if (data) {
if (status === 403 && !/getinfo$/i.test(res.config.url)) { if (status === 403 && !/getinfo$/i.test(res.config.url)) {
if (store.state.isWeapp) { if (store.state.isWeapp) {
wx.miniProgram.navigateTo({ url: '/pages/login/index' }) wx.miniProgram.redirectTo({ url: '/pages/login/index' })
} else { } else {
router.push('/login') router.push('/login')
} }
} }
if (status === 402) { if (status === 402) {
if (store.state.isWeapp) { if (store.state.isWeapp) {
wx.miniProgram.navigateTo({ wx.miniProgram.redirectTo({
url: `/pages/web/index?src=${window.location.origin}/pay` url: `/pages/web/index?src=${window.location.origin}/pay`
}) })
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论