规范:统一自有源码中文注释和中文提交约定

This commit is contained in:
cieanyau committed 2026-11-07 04:49:51 +08:00
1 parent bdb9b00b6e
commit 83b7484558
17 files changed
+39 -36

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ async function verifyAndEnterConsole() {
isVerifying.value = true;
verificationError.value = "";
try {
// The route guard owns credential extraction; this page never reads it from the URL.
// 凭据提取由路由守卫负责,本页不再从 URL 读取。
await auth.verifyLegacyLogin();
if (!disposed) await router.replace("/");
} catch (error) {
+2 -2
View File
@@ -255,7 +255,7 @@ async function confirmSecurityVerification(verification) {
credentials.type === "password" &&
captchaNeeded.value
) {
// Certification returns to this form for a fresh CAPTCHA before continuing the same login.
// 实名认证挑战后先回到当前表单刷新并完成验证码,再续交同一次登录。
pendingVerification.value = { ...verification };
securityDialogVisible.value = false;
errorMessage.value = "";
@@ -407,7 +407,7 @@ async function submitLogin() {
</div>
<div v-if="loginMode === 'code'" class="field">
<label for="login-code">验证码</label>
<!-- Retain the deployed scoped selectors without changing the shared stylesheet. -->
<!-- 保留已部署样式的作用域标记,不改动共享样式表。 -->
<div class="code-row" data-v-7896f676>
<InputText
id="login-code"
+3 -3
View File
@@ -117,7 +117,7 @@ async function loadSearchResults() {
searchLoading.value = true;
listError.value = "";
try {
// Search owns the complete result set; only visibleRows applies local pagination.
// 搜索负责收集完整结果,仅由 visibleRows 执行本地分页。
const completeRows = await loadCompleteList(
(page, limit) => api.get("/ssh_key", { page, limit }),
isCurrent,
@@ -244,7 +244,7 @@ async function copyPublicKey(key) {
copiedKeyId.value = key.id;
copyResetTimer = setTimeout(() => (copiedKeyId.value = null), 2000);
} catch {
// Clipboard access can be unavailable; the public key remains selectable.
// 剪贴板权限或接口可能不可用,用户仍可手工选择并复制公钥。
}
}
@@ -257,7 +257,7 @@ onBeforeUnmount(() => {
</script>
<template>
<!-- Keep the imported page styles scoped, including the teleported editor. -->
<!-- 保留导入样式的页面作用域,包括渲染到页面外部的编辑弹窗。 -->
<div class="list-page" data-v-31489433>
<div class="list-head" data-v-31489433>
<h2 data-v-31489433>SSH 密钥</h2>