Browse Source

代码同步

lph 1 year ago
parent
commit
98e9905297
1 changed files with 7 additions and 2 deletions
  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");
         }