lph 1 gadu atpakaļ
vecāks
revīzija
98e9905297
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 7 2
      zkqy-ui/src/views/login.vue

+ 7 - 2
zkqy-ui/src/views/login.vue

@@ -287,8 +287,13 @@ export default {
       try {
         let res = await getLoginPageConfigurationInfo(query);
         if (res.code === 200) {
-          this.config = res.data;
-          this.setConfig();
+          if (res.data) {
+            this.config = res.data;
+            this.setConfig();
+          } else {
+            // this.$router.push("/404");
+            this.$message.error("获取页面信息失败,请检查url中的tenantId");
+          }
         } else {
           this.$message.error("获取页面信息失败,请检查tenantId");
         }