Ver código fonte

:sparkles: 添加新特性。新增租户管理

冷冷 6 anos atrás
pai
commit
7ffee2fc59
2 arquivos alterados com 5 adições e 2 exclusões
  1. 3 1
      src/const/crud/user.js
  2. 2 1
      src/page/login/index.vue

+ 3 - 1
src/const/crud/user.js

@@ -21,6 +21,8 @@ var validateUsername = (rule, value, callback) => {
         let result = response.data.data
         if (result !== null) {
             callback(new Error('用户名已经存在'))
+        } else {
+          callback()
         }
     });
 };
@@ -129,4 +131,4 @@ export const tableOption = {
         addVisdiplay: false,
         span: 24,
     }]
-}
+}

+ 2 - 1
src/page/login/index.vue

@@ -7,7 +7,8 @@
           选择租户<i class="el-icon-arrow-down el-icon--right"></i>
         </span>
         <el-dropdown-menu slot="dropdown">
-          <el-dropdown-item command="2">pigx</el-dropdown-item>
+          <el-dropdown-item command="1">租户1</el-dropdown-item>
+          <el-dropdown-item command="2">租户2</el-dropdown-item>
         </el-dropdown-menu>
       </el-dropdown>
     </div>