|
|
@@ -45,6 +45,7 @@
|
|
|
import { useUserStore } from '@/store/modules/user';
|
|
|
import SwitchTenant from '@/layout/components/SwitchTenant.vue';
|
|
|
import { SYS_TENANT_ID } from '@/utils/useTargetTenantIdSetting';
|
|
|
+ import { ElMessage } from 'element-plus';
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
const activeNav = ref(NAV_LIST[0].name);
|
|
|
@@ -69,7 +70,10 @@
|
|
|
const { title } = useGlobSetting();
|
|
|
|
|
|
const handleNavClick = (item: { name: string; path: string }) => {
|
|
|
- if (!item.path) return;
|
|
|
+ if (!item.path) {
|
|
|
+ ElMessage.warning(`${item.name}功能建设中,暂无法访问`);
|
|
|
+ return;
|
|
|
+ }
|
|
|
activeNav.value = item.name;
|
|
|
router.push(item.path);
|
|
|
};
|