c3c91799 by 杨炀

no message

1 parent 8162910a
...@@ -70,12 +70,21 @@ const request = function(req) { ...@@ -70,12 +70,21 @@ const request = function(req) {
70 resolve(data) 70 resolve(data)
71 } else { 71 } else {
72 if (!excludeUrls.includes(req.url)) { 72 if (!excludeUrls.includes(req.url)) {
73 uni.showToast({ 73 if(data.msg){
74 title: data.msg, 74 uni.showModal({
75 icon: 'none', 75 content: data.msg,
76 duration: 3000 76 success: function(res) {
77
78 }
77 }) 79 })
78 } 80 }
81 uni.hideLoading()
82 // uni.showToast({
83 // title: data.msg,
84 // icon: 'none',
85 // duration: 3000
86 // })
87 }
79 88
80 // 登录超时 89 // 登录超时
81 if (data.code === 60002 || data.code === 60001) { 90 if (data.code === 60002 || data.code === 60001) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!