X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/9b7d6cbc3dc75d0d5fe998f57195e7c39dd0fcd4..3e75b2df3b1a5747e9f9be32d89fbee1fa66e36c:/Plugson/www/plugson_auto_install.html diff --git a/Plugson/www/plugson_auto_install.html b/Plugson/www/plugson_auto_install.html index 4014e10..a8e45bc 100644 --- a/Plugson/www/plugson_auto_install.html +++ b/Plugson/www/plugson_auto_install.html @@ -359,9 +359,13 @@ template: call_array, type: type }, function(e) { - list.push(data); - FillAutoInsTable(list); - Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + if (e.result === 'success') { + list.push(data); + FillAutoInsTable(list); + Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + } else if (e.result === 'duplicate') { + Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH); + } }); }