41 lines
709 B
Vue
41 lines
709 B
Vue
<template>
|
|
<Dialog
|
|
:options="{
|
|
title: '设置'
|
|
}"
|
|
v-model="show"
|
|
>
|
|
<template #body-content>
|
|
<div class="mt-8 flex flex-col gap-4">
|
|
<Switch
|
|
v-model="enforce2FA"
|
|
label="强制启用双因素认证"
|
|
description="要求所有团队成员启用双因素认证"
|
|
/>
|
|
</div>
|
|
</template>
|
|
</Dialog>
|
|
</template>
|
|
|
|
<script>
|
|
import { Switch } from 'jingrow-ui';
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
show: true
|
|
};
|
|
},
|
|
components: { Switch },
|
|
computed: {
|
|
enforce2FA: {
|
|
get() {
|
|
return Boolean(this.$team?.pg.enforce_2fa);
|
|
},
|
|
set(value) {
|
|
this.$team.setValue.submit({ enforce_2fa: value });
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script> |