refactor: 第三方参数解析失败时增加提示

This commit is contained in:
wangjiahao 2022-03-29 12:38:58 +08:00
parent 0b786a0721
commit 68ac2a0d1e
4 changed files with 9 additions and 0 deletions

View File

@ -1390,6 +1390,7 @@ export default {
sure_bt: 'Confirm'
},
panel: {
json_params_error: 'Third Party Parameters Parsing Failed. Please Check Whether The Parameters Format Is Correct',
inner_padding: 'Inner Padding',
board_radio: 'Board Radio',
background: 'Background',

View File

@ -1391,6 +1391,7 @@ export default {
sure_bt: '確定'
},
panel: {
json_params_error: '第三方参数解析失败,请检查参数格式是否正确',
inner_padding: '内边距',
board_radio: '边框半径',
background: '背景',

View File

@ -1399,6 +1399,7 @@ export default {
sure_bt: '确定'
},
panel: {
json_params_error: '第三方参数解析失败,请检查参数格式是否正确',
inner_padding: '内边距',
board_radio: '边框半径',
background: '背景',

View File

@ -81,6 +81,12 @@ export default {
if (--loadingCount === 0) {
this.show = true
}
this.$message({
message: this.$t('panel.json_params_error'),
type: 'error',
showClose: true
})
console.log('outerParams Decode error', e)
}
}