]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/plugson_auto_install.html
Fix the order issue in TreeView mode. (#3218)
[Ventoy.git] / Plugson / www / plugson_auto_install.html
index 4014e101b892cdd642aaafc2aa09618d8e396561..a8e45bcf8ab58adc1c192c8d73dfe72941b457d7 100644 (file)
       template: call_array,\r
       type: type\r
     }, function(e) {\r
-      list.push(data);\r
-      FillAutoInsTable(list);\r
-      Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);\r
+      if (e.result === 'success') {\r
+        list.push(data);\r
+        FillAutoInsTable(list);\r
+        Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);\r
+      } else if (e.result === 'duplicate') {\r
+        Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH);\r
+      }\r
     });\r
   }\r
 \r