|
|
|
|
@ -108,12 +108,15 @@ watch(
|
|
|
|
|
/**
|
|
|
|
|
* 默认选中第一项租户
|
|
|
|
|
*/
|
|
|
|
|
const stop = watch(props.tenantOptions, (options) => {
|
|
|
|
|
if (options.length > 0) {
|
|
|
|
|
formState.tenantId = options[0]!.tenantId;
|
|
|
|
|
stop();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const stop = watch(
|
|
|
|
|
() => props.tenantOptions,
|
|
|
|
|
(options) => {
|
|
|
|
|
if (options.length > 0) {
|
|
|
|
|
formState.tenantId = options[0]!.tenantId;
|
|
|
|
|
stop();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const usernameStatus = computed(() => {
|
|
|
|
|
return formState.submitted && !formState.username ? 'error' : 'default';
|
|
|
|
|
|