feat(store): 新增用户和企业信息管理功能
- 在 user store 中添加 userInfo 相关状态和操作 - 创建 enterprise store管理企业信息 - 更新相关组件以使用新的 store 方法
This commit is contained in:
@ -61,8 +61,10 @@ import { fetchSubAccountPage, removeEnterpriseAccount, getEnterpriseInviteCode }
|
||||
import Modal from '@/components/modal.vue';
|
||||
import DeleteModal from '@/components/delete-modal.vue';
|
||||
import CustomerServiceModal from '@/components/customer-service-modal.vue';
|
||||
import { useClipboard } from '@vueuse/core'
|
||||
import { useClipboard } from '@vueuse/core';
|
||||
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
||||
|
||||
const store = useEnterpriseStore();
|
||||
const columns = [
|
||||
{
|
||||
title: '手机号',
|
||||
@ -93,11 +95,7 @@ const addAccountVisible = ref(false);
|
||||
const deleteVisible = ref(false);
|
||||
const deleteTitle = ref('');
|
||||
|
||||
const enterpriseInfo = reactive({
|
||||
name: '123321',
|
||||
sub_account_quota: 2,
|
||||
used_sub_account_count: 1,
|
||||
});
|
||||
const enterpriseInfo = store.getEnterpriseInfo();
|
||||
|
||||
const okText = computed(() => {
|
||||
if (!canAddAccount.value) {
|
||||
|
||||
Reference in New Issue
Block a user