zhanghua
2025-10-20 e95b21a03fe9dfc35326c99890a685c53cd36fbc
src/views/login/index.vue
@@ -95,10 +95,17 @@
                        isAdmin = true;
                    }
                })
                if (isAdmin) {
                    findStaffByUserId(res.id).then(staffs => {
                        localStorage.setItem("staffs", JSON.stringify(staffs));
                        localStorage.setItem("selectStaff", JSON.stringify(staffs[0]));
                    findStaffByUserId(res.id).then(sres => {
                        if (sres.data && sres.data.findStaffByUserId) {
                            var staffs = sres.data.findStaffByUserId;
                            localStorage.setItem("staffs", JSON.stringify(staffs));
                            localStorage.setItem("selectStaff", JSON.stringify(staffs[0]));
                            this.$EventBus.$emit("updateStaffs", '123');
                        }
                    })
                }