|
@@ -34,7 +34,6 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { loginByUsername } from "@/api/loginPage";
|
|
|
-import { ref } from "vue";
|
|
|
import { useRouteQuery } from "@vueuse/router";
|
|
|
import { useRouter } from "vue-router";
|
|
|
import { useMainStore } from "@/store";
|
|
@@ -52,7 +51,11 @@ let errorInfo = $ref("");
|
|
|
|
|
|
async function login() {
|
|
|
try {
|
|
|
- const res = await loginByUsername({ accountValue, password, rootOrgId });
|
|
|
+ const res = await loginByUsername({
|
|
|
+ accountValue,
|
|
|
+ password,
|
|
|
+ rootOrgId: parseInt(rootOrgId?.toString() ?? "1"),
|
|
|
+ });
|
|
|
console.log(res);
|
|
|
store.setUserInfo(res.data);
|
|
|
router.push("/project/projectManagement");
|