Răsfoiți Sursa

/api/HtmlWindowResource/uniqueByNo 修复返回值

YangZhiJie 1 an în urmă
părinte
comite
9269e1b0a2
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  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
       ) {
         HtmlWindowResource.uniqueByNo(infoButton.htmlWindowNo).then(
-          htmlWindowDto => {
+          response => {
+            if (response.errorCode != 0) {
+              Notify.error('错误', response.errorMessage, true);
+              return;
+            }
+
+            const htmlWindowDto = response.data;
             if (htmlWindowDto != undefined) {
               var htmlWindowUrl = htmlWindowDto.htmlFileName;
               var autoCloseInterval = htmlWindowDto.autoCloseInterval;