From bd4a956f8ed61b0ff3ee2cc9838593309ac7d2a6 Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Thu, 18 Oct 2018 19:49:22 +0800 Subject: [PATCH] Closed #104 pop up error message --- .../main/resources/templates/apps/chatbot/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contact-center/app/src/main/resources/templates/apps/chatbot/index.html b/contact-center/app/src/main/resources/templates/apps/chatbot/index.html index dcbbe354..6ca28b36 100644 --- a/contact-center/app/src/main/resources/templates/apps/chatbot/index.html +++ b/contact-center/app/src/main/resources/templates/apps/chatbot/index.html @@ -134,6 +134,16 @@ }) $('#bots').html(tds); + }, function(err){ + layer.confirm(err.data||err.error, { + btn: ['关闭'], + icon: 2, + title: '提示' + }, function (popup, layero) { + layer.close(popup) + }, function (popup) { + // 取消方法 + }); }) }