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
+1
View File
@@ -423,6 +423,7 @@ export default {
'You have enabled Face ID/Touch ID successfully': 'You have enabled Face ID/Touch ID successfully',
'This device does not support Face ID/Touch ID': 'This device does not support Face ID/Touch ID',
'Failed to enable Face ID/Touch ID': 'Failed to enable Face ID/Touch ID',
'User has canceled authentication': 'User has canceled authentication',
'User has canceled or this device does not support Face ID/Touch ID': 'User has canceled or this device does not support Face ID/Touch ID',
'Failed to authenticate by Face ID/Touch ID': 'Failed to authenticate by Face ID/Touch ID',
'Exchange Rates Data': 'Exchange Rates Data',
+1
View File
@@ -423,6 +423,7 @@ export default {
'You have enabled Face ID/Touch ID successfully': '您已经成功开启面容ID / 指纹ID',
'This device does not support Face ID/Touch ID': '当前设备不支持 Face ID 或 Touch ID',
'Failed to enable Face ID/Touch ID': '启用 Face ID 或 Touch ID 失败',
'User has canceled authentication': '用户已经取消认证',
'User has canceled or this device does not support Face ID/Touch ID': '用户已取消或当前设备不支持 Face ID 或 Touch ID',
'Failed to authenticate by Face ID/Touch ID': '使用 Face ID / Touch ID 认证失败',
'Exchange Rates Data': '汇率数据',
+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 {
+2
View File
@@ -49,6 +49,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 authenticate by Face ID/Touch ID');
} else {