refactor(login): 注释掉初始化租户列表代码
- 在 login.vue 文件中注释掉了 onMounted 中的 initTenantList() 方法- 在 Navbar.vue 文件中移除了与租户选择相关的 v-if条件中的 userId === 1判断。所有用户均可使用动态切换租户的功能
This commit is contained in:
parent
b879f9985d
commit
c0b08fc2da
@ -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
|
||||
|
@ -226,7 +226,7 @@ const doSocialLogin = (type: string) => {
|
||||
|
||||
onMounted(() => {
|
||||
getCode();
|
||||
initTenantList();
|
||||
// initTenantList();
|
||||
getLoginData();
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user