浏览代码

/api/HtmlWindowResource/uniqueByNo 修复返回值

YangZhiJie 1 年之前
父节点
当前提交
9269e1b0a2
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      packages/info/src/QueryPage.vue

+ 7 - 1
packages/info/src/QueryPage.vue

@@ -584,7 +584,13 @@ export default {
         infoButton.htmlWindowNo.length > 0
         infoButton.htmlWindowNo.length > 0
       ) {
       ) {
         HtmlWindowResource.uniqueByNo(infoButton.htmlWindowNo).then(
         HtmlWindowResource.uniqueByNo(infoButton.htmlWindowNo).then(
-          htmlWindowDto => {
+          response => {
+            if (response.errorCode != 0) {
+              Notify.error('错误', response.errorMessage, true);
+              return;
+            }
+
+            const htmlWindowDto = response.data;
             if (htmlWindowDto != undefined) {
             if (htmlWindowDto != undefined) {
               var htmlWindowUrl = htmlWindowDto.htmlFileName;
               var htmlWindowUrl = htmlWindowDto.htmlFileName;
               var autoCloseInterval = htmlWindowDto.autoCloseInterval;
               var autoCloseInterval = htmlWindowDto.autoCloseInterval;