Browse Source

优化租户登录

ZaiZai 2 years ago
parent
commit
53b9b9c150
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/login/index.vue

+ 2 - 2
src/views/login/index.vue

@@ -68,7 +68,7 @@ import website from '~src/config/index'
 import router from '~src/router/index';
 import {useAppStore} from "~src/store";
 import {useAppLogin} from "~sto/user";
-import {formValidate, getToObjVal} from "js-fast-way"
+import {formValidate, getObjVal} from "js-fast-way"
 import HcPicVue from './components/pic.vue'
 import HcHomeBg from './components/home-bg.vue'
 import {getTenantID} from "~api/user";
@@ -119,7 +119,7 @@ const passwordKeyUp = (e) => {
 //获取租户id
 const getTenantIdApi = async () => {
     const {error, code, data} = await getTenantID(getTopUrl())
-    const res = getToObjVal(data)
+    const res = getObjVal(data)
     if (!error && code === 200 && res) {
         tenantMode.value = false
         formValue.value.tenantId = res.tenantId