perf: 调整
This commit is contained in:
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useUserStore } from '@/stores';
|
import { useUserStore } from '@/stores';
|
||||||
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
|
||||||
|
|
||||||
import { getUserEnterpriseInfo } from '@/utils/user';
|
import { getUserEnterpriseInfo } from '@/utils/user';
|
||||||
|
|
||||||
|
|||||||
@ -268,7 +268,6 @@ const getProfileInfo = async () => {
|
|||||||
mobileNumber.value = data['mobile'];
|
mobileNumber.value = data['mobile'];
|
||||||
accounts.value = enterprises;
|
accounts.value = enterprises;
|
||||||
enterpriseStore.setEnterpriseInfo(data);
|
enterpriseStore.setEnterpriseInfo(data);
|
||||||
userStore.setUserInfo(data);
|
|
||||||
|
|
||||||
if (enterprises.length > 0) {
|
if (enterprises.length > 0) {
|
||||||
if (enterprises.length === 1) {
|
if (enterprises.length === 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user