From 9a58b98f12ea148805250909f1f00a93364ced20 Mon Sep 17 00:00:00 2001
From: Zhou Weidong <502333560@qq.com>
Date: Thu, 29 Oct 2026 09:58:57 +0800
Subject: [PATCH 01/24] =?UTF-8?q?fix(login):=20=E8=AE=B0=E4=BD=8F=E6=88=91?=
=?UTF-8?q?=E5=90=8C=E6=97=B6=E8=AE=B0=E4=BD=8F=E5=AF=86=E7=A0=81=E5=B9=B6?=
=?UTF-8?q?=E5=9B=9E=E5=A1=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/login/types.ts | 1 +
src/store/modules/user.ts | 12 +-----------
src/views/Login/components/LoginForm.vue | 8 +++++---
3 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/src/api/login/types.ts b/src/api/login/types.ts
index 6c26ed6..d1cd4a0 100644
--- a/src/api/login/types.ts
+++ b/src/api/login/types.ts
@@ -2,6 +2,7 @@
export type UserLoginType = {
username: string
+ password?: string
}
export type UserType = {
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 43590d1..84c1865 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -104,17 +104,7 @@ export const useUserStore = defineStore('user', {
this.loginInfo = loginInfo
}
},
- persist: {
- afterRestore: (context) => {
- const loginInfo = context.store.loginInfo as
- (UserLoginType & { password?: string }) | undefined
- if (loginInfo?.password !== undefined) {
- context.store.setLoginInfo(
- loginInfo.username ? { username: loginInfo.username } : undefined
- )
- }
- }
- }
+ persist: true
})
export const useUserStoreWithOut = () => {
diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue
index bf7f6fd..8054131 100644
--- a/src/views/Login/components/LoginForm.vue
+++ b/src/views/Login/components/LoginForm.vue
@@ -132,7 +132,7 @@ const remember = ref(userStore.getRememberMe)
const initLoginInfo = () => {
const loginInfo = userStore.getLoginInfo
if (loginInfo) {
- setValues({ username: loginInfo.username })
+ setValues({ username: loginInfo.username, password: loginInfo.password })
}
}
onMounted(() => {
@@ -169,10 +169,12 @@ const signIn = async () => {
const res = await loginApi(formData)
if (res) {
- // 是否记住我
+ // 是否记住我:勾选时把账号密码一起持久化到 localStorage,
+ // 下次打开登录页自动回填,免重复输入。
if (unref(remember)) {
userStore.setLoginInfo({
- username: formData.username
+ username: formData.username,
+ password: formData.password
})
} else {
userStore.setLoginInfo(undefined)
From 040ec3f38208e682304f3415c6427377230e8c51 Mon Sep 17 00:00:00 2001
From: Zhou Weidong <502333560@qq.com>
Date: Thu, 29 Oct 2026 10:08:21 +0800
Subject: [PATCH 02/24] =?UTF-8?q?fix(login):=20=E9=80=80=E5=87=BA=E7=99=BB?=
=?UTF-8?q?=E5=BD=95=E4=B8=8D=E6=B8=85=E9=99=A4=E8=AE=B0=E4=BD=8F=E6=88=91?=
=?UTF-8?q?=E7=9A=84=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/user.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 84c1865..27fa795 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -87,8 +87,8 @@ export const useUserStore = defineStore('user', {
this.setToken('')
this.setUserInfo(undefined)
this.setRoleRouters([])
- this.setLoginInfo(undefined)
- this.setRememberMe(false)
+ // 注意:不能清 loginInfo / rememberMe —— 那是「记住我」存的账号密码,
+ // 退出登录后回到登录页还要靠它来回填,清了就等于「记住我」没生效。
tagsViewStore.delAllViews()
// 菜单/路由一起清:否则换账号后 permissionStore 里还是上一个账号的路由表
permissionStore.clearRoutes()
From d13bdd5dc8dc78cb809f76cb0f43f6df1c5b7855 Mon Sep 17 00:00:00 2001
From: Zhou Weidong <502333560@qq.com>
Date: Thu, 29 Oct 2026 10:47:36 +0800
Subject: [PATCH 03/24] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=20Gitea=20Action?=
=?UTF-8?q?s=20=E6=B5=81=E6=B0=B4=E7=BA=BF=EF=BC=88=E6=B5=8B=E8=AF=95/?=
=?UTF-8?q?=E5=88=86=E6=9E=90/=E6=9E=84=E5=BB=BA=E9=97=A8=E7=A6=81?=
=?UTF-8?q?=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitea/workflows/ci.yml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 .gitea/workflows/ci.yml
diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
new file mode 100644
index 0000000..946a39d
--- /dev/null
+++ b/.gitea/workflows/ci.yml
@@ -0,0 +1,28 @@
+# Author: fruit.com.cn
+# ReelShortWeb 后台 CI:lint + 构建门禁
+name: web-ci
+
+on:
+ push:
+ branches: [develop, main]
+ pull_request:
+ branches: [develop, main]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: pnpm/action-setup@v4
+ with:
+ version: 9
+ - uses: actions/setup-node@v4
+ with:
+ node-version: "20"
+ cache: pnpm
+ - name: 依赖
+ run: pnpm install --frozen-lockfile
+ - name: 类型检查
+ run: pnpm ts:check
+ - name: 构建
+ run: pnpm build:pro
From dea414739ea512f6e8f145e88030f743a50111fd Mon Sep 17 00:00:00 2001
From: Vicky <10212746+haifeng-jiang@user.noreply.gitee.com>
Date: Thu, 29 Oct 2026 15:44:42 +0800
Subject: [PATCH 04/24] =?UTF-8?q?feat(tag):=20=E6=A0=87=E7=AD=BE=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE=E8=AF=AD=E4=B9=89?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
客户端按语义码判断板块归属(如推荐页「上新」横滑),标签改名或换语言
都不再影响;新增/编辑弹窗增加语义码输入并做格式校验,留空则按名称兜底。
---
.../contentManagement/TagManagementView.vue | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/src/views/contentManagement/TagManagementView.vue b/src/views/contentManagement/TagManagementView.vue
index af5cd24..43121d3 100644
--- a/src/views/contentManagement/TagManagementView.vue
+++ b/src/views/contentManagement/TagManagementView.vue
@@ -33,6 +33,7 @@ const DEFAULT_TAG_COLOR = '#E5484D'
const emptyForm = () => ({
locales: { zh: '' },
bgColor: DEFAULT_TAG_COLOR,
+ code: '',
sort: 1,
status: 1
})
@@ -66,6 +67,7 @@ function openEdit(row) {
Object.assign(form, {
locales,
bgColor: row.bgColor || DEFAULT_TAG_COLOR,
+ code: row.code || '',
sort: row.sort ?? 0,
status: row.status ?? 1
})
@@ -83,12 +85,18 @@ async function save() {
ElMessage.warning(`请填写${languageLabel(missing)}名称`)
return
}
+ const code = (form.code || '').trim().toUpperCase()
+ if (code && !/^[A-Z][A-Z0-9_]{0,31}$/.test(code)) {
+ ElMessage.warning('语义码需为大写字母、数字或下划线,且以字母开头')
+ return
+ }
saving.value = true
try {
const payload = {
name: locales.zh,
locales,
bgColor: form.bgColor || DEFAULT_TAG_COLOR,
+ code,
sort: form.sort,
status: form.status
}
@@ -209,6 +217,16 @@ onMounted(load)
竖版封面
+{{ EPISODE_COVER.hint }}
+RFDR^bxvn@9Y*WEN=gx_Ybqn@9Ji_UejT%
z4y&4k7xeM>I{a3Jj`Uyan9p^1%=Iu&5**awejS=Iuj=D}a8=>@f)1b4;gdSt>AKBz
zv+Ft?u4)o4)yHPIKp)T6p_zWF>m+g;r$h62q&^<%I>0r@wX18EYl>?deH^dDs3u{E
zKK9e0PESsZHZyd!x^m?5vkJ{)NB9qy8saNm$_UTu@RSbCm|}ITeq26vr93W2T|Us^
z0TsGZHe%k;;T|2nq~pz$&+C|HU7q0VM|HSWhi1%1mo>z%(BWbonlWZL-(@E6PSK%0
zcBPyy6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