From cc993ff4b559a937f6ceaf01c7e77e1d6b50baa1 Mon Sep 17 00:00:00 2001
From: Ldc <ldc@vci.com>
Date: 星期二, 16 四月 2024 10:53:34 +0800
Subject: [PATCH] 1、修改form表单上传方式
---
Source/ProjectWeb/src/page/login/userlogin.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Source/ProjectWeb/src/page/login/userlogin.vue b/Source/ProjectWeb/src/page/login/userlogin.vue
index 5ccde5a..6ef68e3 100644
--- a/Source/ProjectWeb/src/page/login/userlogin.vue
+++ b/Source/ProjectWeb/src/page/login/userlogin.vue
@@ -109,15 +109,15 @@
};
},
created() {
- this.getTenant();
+ // this.getTenant();
},
mounted() {
//鍦╩ounted鑾峰彇棣栭〉涓嬫媺鑿滃崟鏁版嵁
- this.$axios.get('/api/blade-system/tenant/tenant-map').then(res=>{
+ /*this.$axios.get('/api/blade-system/tenant/tenant-map').then(res=>{
if(res.data.code == 200){
this.loginForm.region=res.data.data
}
- })
+ })*/
},
watch: {
'loginForm.deptId'() {
@@ -165,6 +165,7 @@
done();
},
handleLogin() {
+ this.$router.push({path: this.tagWel.value});
this.$refs.loginForm.validate(valid => {
if (valid) {
const loading = this.$loading({
@@ -174,8 +175,8 @@
});
this.$store.dispatch("LoginByUsername", this.loginForm).then(() => {
if (this.website.switchMode) {
- const deptId = this.userInfo.dept_id;
- const roleId = this.userInfo.role_id;
+ const deptId = this.userInfo.deptOid;
+ const roleId = this.userInfo.userOid;
if (deptId.includes(",") || roleId.includes(",")) {
this.loginForm.deptId = deptId;
this.loginForm.roleId = roleId;
--
Gitblit v1.9.3