zrj
2024-06-07 b07a3a9dcb89f9785b7b001d2d26b167376d597e
src/page/login/userlogin.vue
@@ -90,9 +90,9 @@
<script>
import Layout from "@/page/index/";
import { mapGetters } from "vuex";
import { info } from "@/api/system/tenant";
import { authorize } from "@/api/oauth/oauth";
// import {getCaptcha} from "@/api/user";
import { info } from "@/ssoapi/system/tenant";
import { authorize } from "@/ssoapi/oauth/oauth";
// import {getCaptcha} from "@/ssoapi/user";
import { getTopUrl } from "@/util/util";
import axios from "axios";
export default {
@@ -159,7 +159,7 @@
              label: "deptName",
              value: "id",
            },
            dicUrl: "/api/blade-system/dept/select",
            dicUrl: "/ssoapi/blade-system/dept/select",
            span: 24,
            display: false,
            rules: [
@@ -178,7 +178,7 @@
              label: "roleName",
              value: "id",
            },
            dicUrl: "/api/blade-system/role/select",
            dicUrl: "/ssoapi/blade-system/role/select",
            span: 24,
            display: false,
            rules: [
@@ -208,7 +208,7 @@
    "loginForm.deptId"() {
      const column = this.findObject(this.userOption.column, "deptId");
      if (this.loginForm.deptId.includes(",")) {
        column.dicUrl = `/api/blade-system/dept/select?deptId=${this.loginForm.deptId}`;
        column.dicUrl = `/ssoapi/blade-system/dept/select?deptId=${this.loginForm.deptId}`;
        column.display = true;
      } else {
        column.dicUrl = "";
@@ -217,7 +217,7 @@
    "loginForm.roleId"() {
      const column = this.findObject(this.userOption.column, "roleId");
      if (this.loginForm.roleId.includes(",")) {
        column.dicUrl = `/api/blade-system/role/select?roleId=${this.loginForm.roleId}`;
        column.dicUrl = `/ssoapi/blade-system/role/select?roleId=${this.loginForm.roleId}`;
        column.display = true;
      } else {
        column.dicUrl = "";