From 5546af518e92c765513787ccaf8e856be789bcf9 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 5 Jun 2026 00:23:08 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=AF=B7=E6=B1=82=E4=B8=A4=E6=AC=A1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .trae/skills/fast-crud-page-dev/SKILL.md | 2 +- .../ui/certd-client/src/router/source/modules/certd.ts | 3 +++ packages/ui/certd-client/src/router/source/modules/sys.ts | 4 ++-- packages/ui/certd-client/src/views/certd/access/index.vue | 2 +- packages/ui/certd-client/src/views/certd/addon/index.vue | 2 +- .../ui/certd-client/src/views/certd/basic/group/index.vue | 2 +- .../src/views/certd/cert/apply-template/index.vue | 2 +- .../src/views/certd/cert/dns-persist/index.vue | 2 +- .../ui/certd-client/src/views/certd/cert/domain/index.vue | 2 +- .../certd-client/src/views/certd/cname/record/index.vue | 2 +- .../ui/certd-client/src/views/certd/history/index.vue | 2 +- .../certd-client/src/views/certd/monitor/cert/index.vue | 2 +- .../src/views/certd/monitor/history/index.vue | 2 +- .../certd-client/src/views/certd/monitor/site/index.vue | 2 +- .../src/views/certd/monitor/site/ip/index.vue | 2 +- .../certd-client/src/views/certd/notification/index.vue | 2 +- .../certd-client/src/views/certd/open/openkey/index.vue | 2 +- .../certd-client/src/views/certd/pipeline/group/index.vue | 2 +- .../ui/certd-client/src/views/certd/pipeline/index.vue | 2 +- .../src/views/certd/pipeline/sub-domain/index.vue | 4 ++-- .../src/views/certd/pipeline/template/index.vue | 2 +- .../certd-client/src/views/certd/project/detail/index.vue | 2 +- .../ui/certd-client/src/views/certd/project/index.vue | 2 +- .../ui/certd-client/src/views/certd/suite/mine/index.vue | 6 +++--- packages/ui/certd-client/src/views/certd/trade/index.vue | 2 +- packages/ui/certd-client/src/views/sys/access/index.vue | 2 +- .../src/views/sys/authority/permission/index.vue | 4 ++-- .../certd-client/src/views/sys/authority/role/index.vue | 2 +- .../certd-client/src/views/sys/authority/user/index.vue | 2 +- .../certd-client/src/views/sys/cname/provider/index.vue | 4 ++-- .../certd-client/src/views/sys/enterprise/audit/index.vue | 2 +- .../src/views/sys/enterprise/project/detail/index.vue | 2 +- .../src/views/sys/enterprise/project/index.vue | 2 +- .../ui/certd-client/src/views/sys/monitor/site/index.vue | 2 +- packages/ui/certd-client/src/views/sys/pipeline/index.vue | 2 +- .../src/views/sys/settings/header-menus/index.vue | 2 +- packages/ui/certd-client/src/views/sys/site/index.vue | 8 ++++++++ .../src/views/sys/suite/activation-code/index.vue | 4 ++-- .../ui/certd-client/src/views/sys/suite/invite/level.vue | 2 +- .../src/views/sys/suite/invite/user-level.vue | 2 +- .../certd-client/src/views/sys/suite/invite/withdraw.vue | 2 +- .../ui/certd-client/src/views/sys/suite/trade/index.vue | 8 ++++---- .../certd-client/src/views/sys/suite/user-suite/index.vue | 2 +- 43 files changed, 62 insertions(+), 51 deletions(-) diff --git a/.trae/skills/fast-crud-page-dev/SKILL.md b/.trae/skills/fast-crud-page-dev/SKILL.md index 81c96e0f9..43b2d950b 100644 --- a/.trae/skills/fast-crud-page-dev/SKILL.md +++ b/.trae/skills/fast-crud-page-dev/SKILL.md @@ -25,7 +25,7 @@ version: 1.0.0 ## 实现流程 1. 先在 `packages/ui/certd-client/src/views` 下找 1-2 个相近 Fast Crud 页面,沿用它们的导入、布局、命名和权限写法。 -2. 在 `index.vue` 中使用 `fs-crud ref="crudRef" v-bind="crudBinding"`,并在 `onMounted` / `onActivated` 时调用 `crudExpose.doRefresh()`。 +2. 在 `index.vue` 中使用 `fs-crud ref="crudRef" v-bind="crudBinding"`,并在 `onMounted` 或 `onActivated` 时调用 `crudExpose.doRefresh()`;两个生命周期同时存在时只保留一个刷新入口,避免首次进入页面请求两次。 3. 在 `crud.tsx` 中配置 `request.pageRequest`、`columns`、`search`、`form`、`rowHandle`、`actionbar`、`toolbar` 等,接口分页参数和返回值按现有页面适配。 4. 操作按钮优先放在 Fast Crud 的 `rowHandle.buttons` 或 `actionbar.buttons` 中;审核、保存设置、批量操作等复杂交互可通过 `context` 调用 `index.vue` 中的方法。 5. 金额、状态、时间、枚举等字段优先复用项目已有组件、字典和格式化工具;避免在模板里重复堆格式化逻辑。 diff --git a/packages/ui/certd-client/src/router/source/modules/certd.ts b/packages/ui/certd-client/src/router/source/modules/certd.ts index 9fe104818..973bbe4cf 100644 --- a/packages/ui/certd-client/src/router/source/modules/certd.ts +++ b/packages/ui/certd-client/src/router/source/modules/certd.ts @@ -82,6 +82,7 @@ export const certdResources = [ isMenu: true, icon: "ion:duplicate-outline", auth: true, + keepAlive: true, }, }, { @@ -282,6 +283,7 @@ export const certdResources = [ meta: { icon: "ion:barcode-outline", auth: true, + keepAlive: true, isMenu: true, }, }, @@ -350,6 +352,7 @@ export const certdResources = [ }, icon: "ion:gift-outline", auth: true, + keepAlive: true, }, }, { diff --git a/packages/ui/certd-client/src/router/source/modules/sys.ts b/packages/ui/certd-client/src/router/source/modules/sys.ts index 766135d24..06c756892 100644 --- a/packages/ui/certd-client/src/router/source/modules/sys.ts +++ b/packages/ui/certd-client/src/router/source/modules/sys.ts @@ -112,7 +112,7 @@ export const sysResources = [ }, { title: "certd.sysResources.headerMenus", - name: "HeaderMenus", + name: "SettingsHeaderMenus", path: "/sys/settings/header-menus", component: "/sys/settings/header-menus/index.vue", meta: { @@ -128,7 +128,7 @@ export const sysResources = [ }, { title: "certd.sysResources.sysAccess", - name: "SysAccess", + name: "SysAccessManager", path: "/sys/access", component: "/sys/access/index.vue", meta: { diff --git a/packages/ui/certd-client/src/views/certd/access/index.vue b/packages/ui/certd-client/src/views/certd/access/index.vue index 2079c4040..16cf15356 100644 --- a/packages/ui/certd-client/src/views/certd/access/index.vue +++ b/packages/ui/certd-client/src/views/certd/access/index.vue @@ -26,7 +26,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/addon/index.vue b/packages/ui/certd-client/src/views/certd/addon/index.vue index 6ab6cd736..25f9997e2 100644 --- a/packages/ui/certd-client/src/views/certd/addon/index.vue +++ b/packages/ui/certd-client/src/views/certd/addon/index.vue @@ -29,7 +29,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/basic/group/index.vue b/packages/ui/certd-client/src/views/certd/basic/group/index.vue index 8dd866783..7d3282634 100644 --- a/packages/ui/certd-client/src/views/certd/basic/group/index.vue +++ b/packages/ui/certd-client/src/views/certd/basic/group/index.vue @@ -27,7 +27,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/cert/apply-template/index.vue b/packages/ui/certd-client/src/views/certd/cert/apply-template/index.vue index 61031a83c..f58053998 100644 --- a/packages/ui/certd-client/src/views/certd/cert/apply-template/index.vue +++ b/packages/ui/certd-client/src/views/certd/cert/apply-template/index.vue @@ -27,7 +27,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ }); onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { diff --git a/packages/ui/certd-client/src/views/certd/cert/dns-persist/index.vue b/packages/ui/certd-client/src/views/certd/cert/dns-persist/index.vue index a877357cb..01dd95ba2 100644 --- a/packages/ui/certd-client/src/views/certd/cert/dns-persist/index.vue +++ b/packages/ui/certd-client/src/views/certd/cert/dns-persist/index.vue @@ -25,7 +25,7 @@ const context: any = { const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context }); onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/cert/domain/index.vue b/packages/ui/certd-client/src/views/certd/cert/domain/index.vue index 0a366f8e7..1b40f43e4 100644 --- a/packages/ui/certd-client/src/views/certd/cert/domain/index.vue +++ b/packages/ui/certd-client/src/views/certd/cert/domain/index.vue @@ -62,7 +62,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/cname/record/index.vue b/packages/ui/certd-client/src/views/certd/cname/record/index.vue index 5f4f49522..77d35ff24 100644 --- a/packages/ui/certd-client/src/views/certd/cname/record/index.vue +++ b/packages/ui/certd-client/src/views/certd/cname/record/index.vue @@ -62,7 +62,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/history/index.vue b/packages/ui/certd-client/src/views/certd/history/index.vue index 74e298830..e21262064 100644 --- a/packages/ui/certd-client/src/views/certd/history/index.vue +++ b/packages/ui/certd-client/src/views/certd/history/index.vue @@ -55,7 +55,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/monitor/cert/index.vue b/packages/ui/certd-client/src/views/certd/monitor/cert/index.vue index 6c04a8314..3f7a76463 100644 --- a/packages/ui/certd-client/src/views/certd/monitor/cert/index.vue +++ b/packages/ui/certd-client/src/views/certd/monitor/cert/index.vue @@ -25,7 +25,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/monitor/history/index.vue b/packages/ui/certd-client/src/views/certd/monitor/history/index.vue index b7e8f2b9f..eb8db7058 100644 --- a/packages/ui/certd-client/src/views/certd/monitor/history/index.vue +++ b/packages/ui/certd-client/src/views/certd/monitor/history/index.vue @@ -40,7 +40,7 @@ const handleBatchDelete = context.handleBatchDelete; // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/monitor/site/index.vue b/packages/ui/certd-client/src/views/certd/monitor/site/index.vue index 5acc1db55..53672d2c6 100644 --- a/packages/ui/certd-client/src/views/certd/monitor/site/index.vue +++ b/packages/ui/certd-client/src/views/certd/monitor/site/index.vue @@ -45,7 +45,7 @@ const handleBatchDelete = context.handleBatchDelete; // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/monitor/site/ip/index.vue b/packages/ui/certd-client/src/views/certd/monitor/site/ip/index.vue index c3434a669..e61813ece 100644 --- a/packages/ui/certd-client/src/views/certd/monitor/site/ip/index.vue +++ b/packages/ui/certd-client/src/views/certd/monitor/site/ip/index.vue @@ -24,7 +24,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/notification/index.vue b/packages/ui/certd-client/src/views/certd/notification/index.vue index 614e08c27..cdf741462 100644 --- a/packages/ui/certd-client/src/views/certd/notification/index.vue +++ b/packages/ui/certd-client/src/views/certd/notification/index.vue @@ -26,7 +26,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/open/openkey/index.vue b/packages/ui/certd-client/src/views/certd/open/openkey/index.vue index 1c4a425ac..4fd6da621 100644 --- a/packages/ui/certd-client/src/views/certd/open/openkey/index.vue +++ b/packages/ui/certd-client/src/views/certd/open/openkey/index.vue @@ -23,7 +23,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/pipeline/group/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/group/index.vue index d83be9422..8d9a9bc97 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/group/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/group/index.vue @@ -27,7 +27,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/pipeline/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/index.vue index c86388cf2..db13ba6e6 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/index.vue @@ -129,7 +129,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { diff --git a/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/index.vue index 27135d4d8..ffa017c99 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/sub-domain/index.vue @@ -37,7 +37,7 @@ import { useCrudPermission } from "/@/plugin/permission"; const { t } = useI18n(); defineOptions({ - name: "CnameRecord", + name: "SubDomain", }); const context: any = { permission: { @@ -68,7 +68,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/pipeline/template/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/template/index.vue index 2c3e3edbc..c10048fc5 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/template/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/template/index.vue @@ -30,7 +30,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ const { t } = useI18n(); // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/project/detail/index.vue b/packages/ui/certd-client/src/views/certd/project/detail/index.vue index c2bb178cc..0d3221f23 100644 --- a/packages/ui/certd-client/src/views/certd/project/detail/index.vue +++ b/packages/ui/certd-client/src/views/certd/project/detail/index.vue @@ -117,7 +117,7 @@ onMounted(async () => { return; } await loadProjectDetail(); - await crudExpose.doRefresh(); + // await crudExpose.doRefresh(); if (migrate === "true") { openTransferDialog(); diff --git a/packages/ui/certd-client/src/views/certd/project/index.vue b/packages/ui/certd-client/src/views/certd/project/index.vue index 3830104e7..16e164289 100644 --- a/packages/ui/certd-client/src/views/certd/project/index.vue +++ b/packages/ui/certd-client/src/views/certd/project/index.vue @@ -53,7 +53,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/certd/suite/mine/index.vue b/packages/ui/certd-client/src/views/certd/suite/mine/index.vue index 8b11383c4..f62295758 100644 --- a/packages/ui/certd-client/src/views/certd/suite/mine/index.vue +++ b/packages/ui/certd-client/src/views/certd/suite/mine/index.vue @@ -40,10 +40,10 @@ async function loadSuiteDetail() { // 页面打开后获取列表数据 onMounted(async () => { + // await crudExpose.doRefresh(); +}); +onActivated(async () => { await loadSuiteDetail(); await crudExpose.doRefresh(); }); -onActivated(() => { - crudExpose.doRefresh(); -}); diff --git a/packages/ui/certd-client/src/views/certd/trade/index.vue b/packages/ui/certd-client/src/views/certd/trade/index.vue index a0a2fd8da..631468cf3 100644 --- a/packages/ui/certd-client/src/views/certd/trade/index.vue +++ b/packages/ui/certd-client/src/views/certd/trade/index.vue @@ -19,7 +19,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions }); // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/access/index.vue b/packages/ui/certd-client/src/views/sys/access/index.vue index 919916f70..70f25bf01 100644 --- a/packages/ui/certd-client/src/views/sys/access/index.vue +++ b/packages/ui/certd-client/src/views/sys/access/index.vue @@ -24,7 +24,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { diff --git a/packages/ui/certd-client/src/views/sys/authority/permission/index.vue b/packages/ui/certd-client/src/views/sys/authority/permission/index.vue index a42e6be72..92f4ee7a4 100644 --- a/packages/ui/certd-client/src/views/sys/authority/permission/index.vue +++ b/packages/ui/certd-client/src/views/sys/authority/permission/index.vue @@ -22,7 +22,7 @@ import { useFs, useUi } from "@fast-crud/fast-crud"; import { useI18n } from "/src/locales"; export default defineComponent({ - name: "AuthorityManager", + name: "PermissionManager", components: { FsPermissionTree }, setup() { // 此处传入permission进行通用按钮权限设置,会通过commonOptions去设置actionbar和rowHandle的按钮的show属性 @@ -32,7 +32,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(async () => { - await crudExpose.doRefresh(); + // await crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/authority/role/index.vue b/packages/ui/certd-client/src/views/sys/authority/role/index.vue index 56d8880f1..69382d711 100644 --- a/packages/ui/certd-client/src/views/sys/authority/role/index.vue +++ b/packages/ui/certd-client/src/views/sys/authority/role/index.vue @@ -107,7 +107,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { diff --git a/packages/ui/certd-client/src/views/sys/authority/user/index.vue b/packages/ui/certd-client/src/views/sys/authority/user/index.vue index ef87f2b4d..2a2770453 100644 --- a/packages/ui/certd-client/src/views/sys/authority/user/index.vue +++ b/packages/ui/certd-client/src/views/sys/authority/user/index.vue @@ -21,7 +21,7 @@ export default defineComponent({ // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/cname/provider/index.vue b/packages/ui/certd-client/src/views/sys/cname/provider/index.vue index e1f2427df..a0807a9a5 100644 --- a/packages/ui/certd-client/src/views/sys/cname/provider/index.vue +++ b/packages/ui/certd-client/src/views/sys/cname/provider/index.vue @@ -32,7 +32,7 @@ import { useI18n } from "/src/locales"; const { t } = useI18n(); defineOptions({ - name: "CnameProvider", + name: "CnameSetting", }); const { crudBinding, crudRef, crudExpose, context } = useFs({ createCrudOptions }); @@ -56,7 +56,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/enterprise/audit/index.vue b/packages/ui/certd-client/src/views/sys/enterprise/audit/index.vue index e1f2427df..f508d032c 100644 --- a/packages/ui/certd-client/src/views/sys/enterprise/audit/index.vue +++ b/packages/ui/certd-client/src/views/sys/enterprise/audit/index.vue @@ -56,7 +56,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/enterprise/project/detail/index.vue b/packages/ui/certd-client/src/views/sys/enterprise/project/detail/index.vue index 84f8e6d3e..b28a31709 100644 --- a/packages/ui/certd-client/src/views/sys/enterprise/project/detail/index.vue +++ b/packages/ui/certd-client/src/views/sys/enterprise/project/detail/index.vue @@ -62,7 +62,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/enterprise/project/index.vue b/packages/ui/certd-client/src/views/sys/enterprise/project/index.vue index b953b8b71..78f1b6b5d 100644 --- a/packages/ui/certd-client/src/views/sys/enterprise/project/index.vue +++ b/packages/ui/certd-client/src/views/sys/enterprise/project/index.vue @@ -53,7 +53,7 @@ const handleBatchDelete = () => { // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/monitor/site/index.vue b/packages/ui/certd-client/src/views/sys/monitor/site/index.vue index 55fa612e9..353f72550 100644 --- a/packages/ui/certd-client/src/views/sys/monitor/site/index.vue +++ b/packages/ui/certd-client/src/views/sys/monitor/site/index.vue @@ -27,7 +27,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context const handleBatchDelete = context.handleBatchDelete; onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/pipeline/index.vue b/packages/ui/certd-client/src/views/sys/pipeline/index.vue index 58bdb647b..6b8cfeee9 100644 --- a/packages/ui/certd-client/src/views/sys/pipeline/index.vue +++ b/packages/ui/certd-client/src/views/sys/pipeline/index.vue @@ -27,7 +27,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context const handleBatchDelete = context.handleBatchDelete; onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/settings/header-menus/index.vue b/packages/ui/certd-client/src/views/sys/settings/header-menus/index.vue index 399b6e759..e87304a6a 100644 --- a/packages/ui/certd-client/src/views/sys/settings/header-menus/index.vue +++ b/packages/ui/certd-client/src/views/sys/settings/header-menus/index.vue @@ -21,7 +21,7 @@ const { crudBinding, crudRef, crudExpose, context } = useFs({ createCrudOptions const settingStore = useSettingStore(); // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/site/index.vue b/packages/ui/certd-client/src/views/sys/site/index.vue index 62719a267..7fdb8b4f8 100644 --- a/packages/ui/certd-client/src/views/sys/site/index.vue +++ b/packages/ui/certd-client/src/views/sys/site/index.vue @@ -123,4 +123,12 @@ const loginLogoCropperOptions = ref({ border-radius: 0 !important; margin-top: 0 !important; } + +.page-sys-site { + .sys-settings-form { + width: 900px; + max-width: 100%; + padding: 20px; + } +} diff --git a/packages/ui/certd-client/src/views/sys/suite/activation-code/index.vue b/packages/ui/certd-client/src/views/sys/suite/activation-code/index.vue index 359112f35..a5af3d79d 100644 --- a/packages/ui/certd-client/src/views/sys/suite/activation-code/index.vue +++ b/packages/ui/certd-client/src/views/sys/suite/activation-code/index.vue @@ -16,13 +16,13 @@ import { useFs } from "@fast-crud/fast-crud"; import createCrudOptions from "./crud"; defineOptions({ - name: "ProductActivationCodeManager", + name: "SysProductActivationCode", }); const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions }); onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(async () => { await crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/suite/invite/level.vue b/packages/ui/certd-client/src/views/sys/suite/invite/level.vue index ae4f2cbea..a8cefe29b 100644 --- a/packages/ui/certd-client/src/views/sys/suite/invite/level.vue +++ b/packages/ui/certd-client/src/views/sys/suite/invite/level.vue @@ -94,7 +94,7 @@ function confirmRemove(opts: any) { } onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/suite/invite/user-level.vue b/packages/ui/certd-client/src/views/sys/suite/invite/user-level.vue index 6a35e5a3c..7cd77629a 100644 --- a/packages/ui/certd-client/src/views/sys/suite/invite/user-level.vue +++ b/packages/ui/certd-client/src/views/sys/suite/invite/user-level.vue @@ -17,7 +17,7 @@ defineOptions({ name: "SysInviteUserLevel" }); const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions }); onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/suite/invite/withdraw.vue b/packages/ui/certd-client/src/views/sys/suite/invite/withdraw.vue index 0fe14e43b..bdd87253d 100644 --- a/packages/ui/certd-client/src/views/sys/suite/invite/withdraw.vue +++ b/packages/ui/certd-client/src/views/sys/suite/invite/withdraw.vue @@ -17,7 +17,7 @@ defineOptions({ name: "SysInviteWithdraw" }); const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions }); onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh(); diff --git a/packages/ui/certd-client/src/views/sys/suite/trade/index.vue b/packages/ui/certd-client/src/views/sys/suite/trade/index.vue index b2b87c41b..aa0975e6f 100644 --- a/packages/ui/certd-client/src/views/sys/suite/trade/index.vue +++ b/packages/ui/certd-client/src/views/sys/suite/trade/index.vue @@ -16,16 +16,16 @@ import { useFs } from "@fast-crud/fast-crud"; import createCrudOptions from "./crud"; defineOptions({ - name: "TradeManager", + name: "OrderManager", }); const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions }); // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); -onActivated(async () => { - await crudExpose.doRefresh(); +onActivated(() => { + crudExpose.doRefresh(); }); diff --git a/packages/ui/certd-client/src/views/sys/suite/user-suite/index.vue b/packages/ui/certd-client/src/views/sys/suite/user-suite/index.vue index 341b8e459..f00230e42 100644 --- a/packages/ui/certd-client/src/views/sys/suite/user-suite/index.vue +++ b/packages/ui/certd-client/src/views/sys/suite/user-suite/index.vue @@ -22,7 +22,7 @@ const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: // 页面打开后获取列表数据 onMounted(() => { - crudExpose.doRefresh(); + // crudExpose.doRefresh(); }); onActivated(() => { crudExpose.doRefresh();