Commit ae546358 authored by Damon's avatar Damon

perf: 针对页面不弹出默认提示

parent 73862001
...@@ -54,7 +54,9 @@ const install = (Vue, vm) => { ...@@ -54,7 +54,9 @@ const install = (Vue, vm) => {
return false return false
} else { } else {
// 如果返回false,则会调用Promise的reject回调, // 如果返回false,则会调用Promise的reject回调,
vm.$u.toast(data.msg) const url = ['pages/index/cert', 'pages/mine/certify']
if (!url.includes(route)) vm.$u.toast(data.msg)
return false return false
} }
} else if (res.statusCode === 401) { } else if (res.statusCode === 401) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment