修改工作台

This commit is contained in:
lq
2025-06-23 10:53:03 +08:00
parent 2ce531f896
commit e1a5f27eda
2 changed files with 4 additions and 3 deletions

View File

@ -265,8 +265,9 @@ const getProfileInfo = async () => {
accounts.value = enterprises; accounts.value = enterprises;
if (enterprises.length > 0) { if (enterprises.length > 0) {
if (enterprises.length == 1) { if (enterprises.length == 1) {
let enterprise = enterprises[0];
userStore.setCompanyInfo(enterprise); // let enterprise = enterprises[0];
// userStore.setCompanyInfo(enterprise);
handleUserLogin(); handleUserLogin();
} else { } else {
// 多个企业时候需要弹窗让用户选择企业 // 多个企业时候需要弹窗让用户选择企业

View File

@ -76,7 +76,7 @@
<script setup lang="ts"> <script setup lang="ts">
import Container from '@/components/container.vue'; import Container from '@/components/container.vue';
import Modal from '@/components/modal.vue'; import Modal from '@/components/modal.vue';
import PuzzleVerification from '@/views/components/login/PuzzleVerification.vue'; import PuzzleVerification from '@/views/components/login/components/PuzzleVerification.vue';
import { ref, reactive } from 'vue'; import { ref, reactive } from 'vue';
import 'vue-cropper/dist/index.css'; import 'vue-cropper/dist/index.css';
import { VueCropper } from 'vue-cropper'; import { VueCropper } from 'vue-cropper';