chore(web): 修掉 eslint 全量检查的 2 个 error,门禁口径改跑 eslint + pnpm build:pro

为什么:红线第 8 条要求 Web 门禁是 `pnpm build` + eslint 零错误,而此前只跑过 ts:check,
全量 eslint 存量有 2 个 error。Web 已冻结,本次只做"去噪"式修复,不改任何行为。

- BannerManagementView: 表格 slot 解构里去掉未被使用的 row($index 仍在用)
- CreatorCenterPage: 自闭合 <slot /> 改为 <slot></slot>(等价写法)
- 实测:eslint 0 error / 0 warning;pnpm build:pro = Build successful
This commit is contained in:
Vicky committed 2026-10-16 09:41:19 +08:00
1 parent 2fa1416c3e
commit 4564aa894d
2 files changed
+2 -2

No files matched your search

@@ -263,7 +263,7 @@ onMounted(async () => {
</template>
</el-table-column>
<el-table-column label="排序" width="150">
<template #default="{ row, $index }">
<template #default="{ $index }">
<div class="table-actions">
<el-button
v-if="can('banner:update')"
@@ -18,5 +18,5 @@ onMounted(ensureAccess)
<template>
<ImpersonationBar />
<CreatorAccessGuide v-if="status === 'unbound' || status === 'need-target'" :status="status" />
<slot v-else-if="ok" />
<slot v-else-if="ok"></slot>
</template>