add error message

This commit is contained in:
MaysWind
2020-11-22 17:27:54 +08:00
parent 59cb3ebc6e
commit 1bd33d854f
4 changed files with 6 additions and 0 deletions
+2
View File
@@ -119,6 +119,8 @@ export default {
if (error.notSupported) {
self.$toast('This device does not support Face ID/Touch ID');
} else if (error.name === 'NotAllowedError') {
self.$toast('User has canceled authentication');
} else if (error.invalid) {
self.$toast('Failed to enable Face ID/Touch ID');
} else {