feat(frontend): add P2 quality gates
This commit is contained in:
@@ -154,7 +154,9 @@ export function useTencentBrowserSessionPolling(options: {
|
||||
}
|
||||
}
|
||||
|
||||
export function isActiveTencentSessionStatus(status: TencentBrowserSessionStatus | null | undefined) {
|
||||
export function isActiveTencentSessionStatus(
|
||||
status: TencentBrowserSessionStatus | null | undefined,
|
||||
) {
|
||||
return Boolean(status && ACTIVE_TENCENT_SESSION_STATUSES.has(status))
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,9 @@ export function useTencentBrowserSessionPresentation(options: {
|
||||
} = options
|
||||
|
||||
const initButtonLabel = computed(() => `开始初始化 ${loginTypeLabel.value} 登录`)
|
||||
const scanInstruction = computed(() => `请使用${loginTypeLabel.value}扫描二维码,并在手机上确认登录`)
|
||||
const scanInstruction = computed(
|
||||
() => `请使用${loginTypeLabel.value}扫描二维码,并在手机上确认登录`,
|
||||
)
|
||||
|
||||
const qrImage = computed(() =>
|
||||
session.value?.qrImageBase64 ? `data:image/png;base64,${session.value.qrImageBase64}` : '',
|
||||
@@ -188,7 +190,7 @@ export function useTencentBrowserSessionPresentation(options: {
|
||||
const screenshotEmptyMessage = computed(() =>
|
||||
session.value?.status === 'redeemed'
|
||||
? '本次兑换可能未生成截图,或截图产物已被后端配置关闭。'
|
||||
: '如本次兑换生成了结果截图,这里会展示。'
|
||||
: '如本次兑换生成了结果截图,这里会展示。',
|
||||
)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user