docs: explain configuration inputs and authentication components
This commit is contained in:
1 parent
dc32a74d7a
commit
3a53d2e58f
19 files changed
+72
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
/** 账号短信/邮件提醒偏好:available 表示渠道可用,enabled 表示用户选择,两者不能混为一项。 */
|
||||
import "~/assets/styles/NotificationPreferences.DcH8Noxd.css";
|
||||
import { toDisplayString } from "vue";
|
||||
import { onMounted } from "vue";
|
||||
@@ -71,6 +72,7 @@ var x = [`aria-labelledby`],
|
||||
U = 0,
|
||||
W = !1;
|
||||
function G(e) {
|
||||
// 四个字段必须是真正布尔值,避免字符串 "false" 被界面当作已开启。
|
||||
let t = [
|
||||
`email_enabled`,
|
||||
`sms_enabled`,
|
||||
@@ -99,6 +101,7 @@ var x = [`aria-labelledby`],
|
||||
}
|
||||
}
|
||||
async function q(e, t) {
|
||||
// 开启前确认渠道可用;乐观切换失败时回滚原值,成功时采用后端完整状态。
|
||||
let n = e === `email_enabled` ? I.email_available : I.sms_available;
|
||||
if (
|
||||
W ||
|
||||
|
||||
Reference in new issue
Block a user