refactor(login): 注释掉初始化租户列表代码

- 在 login.vue 文件中注释掉了 onMounted 中的 initTenantList() 方法- 在 Navbar.vue 文件中移除了与租户选择相关的 v-if条件中的 userId === 1判断。所有用户均可使用动态切换租户的功能
This commit is contained in:
huk 2025-09-15 15:35:56 +08:00
parent b879f9985d
commit c0b08fc2da
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<div class="right-menu flex align-center">
<template v-if="appStore.device !== 'mobile'">
<el-select
v-if="userId === 1 && tenantEnabled"
v-if="tenantEnabled"
v-model="companyId"
class="min-w-244px"
clearable

View File

@ -226,7 +226,7 @@ const doSocialLogin = (type: string) => {
onMounted(() => {
getCode();
initTenantList();
// initTenantList();
getLoginData();
});
</script>