feat: 逻辑调整
This commit is contained in:
@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user