Commit d93a78aa authored by jyx's avatar jyx

代码优化

parent 84e16546
...@@ -111,9 +111,10 @@ ...@@ -111,9 +111,10 @@
}, },
error(e) { error(e) {
console.log(e.detail); console.log(e.detail);
if (e.errNo == 10200) {
this.showCamera = false this.showCamera = false
this.goAuthSetting() this.goAuthSetting()
}
}, },
goAuthSetting() { goAuthSetting() {
tt.showModal({ tt.showModal({
......
...@@ -149,17 +149,21 @@ ...@@ -149,17 +149,21 @@
}) })
}, },
fail: (res) => { fail: (res) => {
setTimeout(() => { if (e.errNo == 10200) {
that.goAuthSetting() setTimeout(() => {
}, 500) that.goAuthSetting()
}, 500)
}
} }
}); });
}, },
error(e) { error(e) {
console.log(e.detail); console.log(e.detail);
this.showCamera = false if (e.errNo == 10200) {
this.goAuthSetting() this.showCamera = false
this.goAuthSetting()
}
}, },
goAuthSetting() { goAuthSetting() {
tt.showModal({ tt.showModal({
......
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