feat: 产品菜单路由权限
This commit is contained in:
@ -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 {
|
||||
// 多个企业时候需要弹窗让用户选择企业
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -48,7 +48,7 @@ const form = reactive({
|
||||
name: '',
|
||||
});
|
||||
|
||||
const enterpriseInfo = store.getEnterpriseInfo();
|
||||
const enterpriseInfo = store.enterpriseInfo;
|
||||
|
||||
const columns = [
|
||||
{
|
||||
|
||||
@ -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');
|
||||
}
|
||||
|
||||
@ -191,7 +191,6 @@ const getHealthData = async () => {
|
||||
const { code, data } = await getMediaAccountsHealth();
|
||||
if (code === 200) {
|
||||
healthData.value = data;
|
||||
console.log(healthData.value);
|
||||
}
|
||||
};
|
||||
const getAccountData = async () => {
|
||||
|
||||
Reference in New Issue
Block a user