diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 287513544..5f92081ce 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -100,8 +100,8 @@ const formDataRef = ref(); // 定义响应式数据 - const tenant = authStore.getTenant || 'default'; - const name = authStore.getName || 'dc3'; + const tenant = typeof authStore.getTenant === 'string' ? authStore.getTenant : 'default'; + const name = typeof authStore.getName === 'string' ? authStore.getName : 'dc3'; const reactiveData = reactive({ isHide: 'View', passwordType: 'password',