zhanghua
2025-08-04 b4668a820cb11703613c59d6529898e230be0b28
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');
                        }
                    })
                }