From cd8bb25c6b07c81d0740714e45c3ce77bf724054 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期三, 04 六月 2025 16:45:35 +0800
Subject: [PATCH] 公司切换功能开发

---
 src/views/login.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index cc98f6b..d8b9a9a 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -77,7 +77,7 @@
 import Cookies from "js-cookie"
 import { encrypt, decrypt } from "@/utils/jsencrypt"
 import useUserStore from '@/store/modules/user'
-import {userDeptList} from "@/api/system/user.js"
+import {userLoginFacotryList} from "@/api/system/user.js"
 
 const title = import.meta.env.VITE_APP_TITLE
 const userStore = useUserStore()
@@ -169,21 +169,20 @@
   }
 }
 
-function deptListSearch() {
+function getUserLoginFacotryList() {
   if(loginForm.value.username){
-    userDeptList({userName:loginForm.value.username}).then(res => {
+    userLoginFacotryList({userName:loginForm.value.username}).then(res => {
       console.log('res', res)
       factoryList.value = res.data
     })
   }else {
     factoryList.value = []
   }
-
 }
 
 getCode()
 getCookie()
-deptListSearch()
+getUserLoginFacotryList()
 </script>
 
 <style lang='scss' scoped>

--
Gitblit v1.9.3