feat: 产品菜单路由权限

This commit is contained in:
rd
2025-07-08 16:55:04 +08:00
parent ead209da4d
commit f87e5ff020
26 changed files with 263 additions and 102 deletions

View File

@ -225,7 +225,6 @@ const clearError = (field: string) => {
const handleOk = async () => {
visible.value = false;
await enterpriseStore.updateEnterpriseInfo();
handleUserLogin();
};
@ -273,7 +272,6 @@ const getProfileInfo = async () => {
if (enterprises.length > 0) {
if (enterprises.length === 1) {
await enterpriseStore.updateEnterpriseInfo();
handleUserLogin();
} else {
// 多个企业时候需要弹窗让用户选择企业

View File

@ -99,7 +99,7 @@ const addAccountVisible = ref(false);
const deleteVisible = ref(false);
const deleteTitle = ref('');
const enterpriseInfo = store.getEnterpriseInfo();
const enterpriseInfo = store.enterpriseInfo;
const okText = computed(() => {
if (!canAddAccount.value) {

View File

@ -48,7 +48,7 @@ const form = reactive({
name: '',
});
const enterpriseInfo = store.getEnterpriseInfo();
const enterpriseInfo = store.enterpriseInfo;
const columns = [
{

View File

@ -102,7 +102,7 @@ const enterpriseStore = useEnterpriseStore();
const handleTrial = async (id: any) => {
const { code } = await trialProduct(id);
if (code === 200) {
enterpriseStore.updateEnterpriseInfo();
enterpriseStore.getUserEnterpriseInfo();
AMessage.success('试用成功!');
emit('refresh');
}