|
@@ -2849,15 +2849,19 @@ $("textarea").on("postpaste", function()
|
|
|
}
|
|
|
}).pasteEvents();
|
|
|
|
|
|
-function showYes()
|
|
|
+function showYes(msg)
|
|
|
{
|
|
|
- showAlert('保存成功', function() {
|
|
|
- if (select_api_open) {
|
|
|
- $('.layui-layer-content').css('overflow-x', 'auto');
|
|
|
- $('#update_button').show();
|
|
|
- layer.closeAll();
|
|
|
- } else {
|
|
|
- location.reload()
|
|
|
- }
|
|
|
- });
|
|
|
+ if (msg.status == 2) {
|
|
|
+ showAlert(msg.msg);
|
|
|
+ } else {
|
|
|
+ showAlert('保存成功', function() {
|
|
|
+ if (select_api_open) {
|
|
|
+ $('.layui-layer-content').css('overflow-x', 'auto');
|
|
|
+ $('#update_button').show();
|
|
|
+ layer.closeAll();
|
|
|
+ } else {
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|