feat: 逻辑调整

This commit is contained in:
rd
2025-09-11 16:08:28 +08:00
parent 7e6e086098
commit b5abdb0887
9 changed files with 279 additions and 153 deletions

View File

@ -233,7 +233,12 @@ const handleSubmit = async () => {
.then(async () => {
const { code } = await postCreateEnterprises(formData.value);
if (code === 200) {
userStore.getUserInfo();
await userStore.getUserInfo();
const { primary_enterprise } = userStore.userInfo;
if (primary_enterprise) {
enterpriseStore.setEnterpriseInfo(primary_enterprise);
}
}
})
.finally(() => {