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">
|
<div class="right-menu flex align-center">
|
||||||
<template v-if="appStore.device !== 'mobile'">
|
<template v-if="appStore.device !== 'mobile'">
|
||||||
<el-select
|
<el-select
|
||||||
v-if="userId === 1 && tenantEnabled"
|
v-if="tenantEnabled"
|
||||||
v-model="companyId"
|
v-model="companyId"
|
||||||
class="min-w-244px"
|
class="min-w-244px"
|
||||||
clearable
|
clearable
|
||||||
|
@ -226,7 +226,7 @@ const doSocialLogin = (type: string) => {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getCode();
|
getCode();
|
||||||
initTenantList();
|
// initTenantList();
|
||||||
getLoginData();
|
getLoginData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user