Commit d93a78aa authored by jyx's avatar jyx

代码优化

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