fix: 默认选中第一项租户
This commit is contained in:
parent
fb525669b5
commit
049da9ea69
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user