X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/3f09fb9a2389c5c212a70feada3206a3cb523c95..HEAD:/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); + } }); }