mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 15:07:33 +08:00
add error message
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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': '汇率数据',
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user