refactor(系统设置): 扫码登陆页面初始化值去掉默认

This commit is contained in:
guoyuqi 2024-06-17 15:20:21 +08:00 committed by Craftsman
parent 8d52c00e9c
commit 7d67a9b258
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@
</div>
</a-form>
<div v-if="showQrCodeTab">
<tab-qr-code tab-name="WE_COM"></tab-qr-code>
<tab-qr-code :tab-name="orgOptions[0].value"></tab-qr-code>
</div>
<a-divider
v-if="isShowLDAP || isShowOIDC || isShowOAUTH || (isShowQRCode && orgOptions.length > 0)"

View File

@ -60,7 +60,7 @@
const orgOptions = ref<qrOption[]>([]);
const props = defineProps<{
tabName: string;
tabName: string | number | boolean | Record<string, unknown> | undefined;
}>();
function handleClick(val: string | number | boolean) {
if (typeof val === 'string') {