From 82f0042e2cb149f4df42ac4ee6bfe4050a7afbc7 Mon Sep 17 00:00:00 2001 From: caixw Date: Fri, 13 Dec 2024 20:40:37 +0800 Subject: [PATCH] chore: v0.7.13 --- admin/package.json | 2 +- cmd/admin/package.json | 4 ++-- cmd/admin/src/main.tsx | 2 +- cmd/admin/src/pages/test.tsx | 2 +- cmfx/cmfx.go | 2 +- package.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/package.json b/admin/package.json index 215c6d3..013a0d6 100644 --- a/admin/package.json +++ b/admin/package.json @@ -1,6 +1,6 @@ { "name": "@cmfx/admin", - "version": "0.7.12", + "version": "0.7.13", "type": "module", "description": "适用于 cmfx 的后台管理框架", "author": { diff --git a/cmd/admin/package.json b/cmd/admin/package.json index e5301b6..b8b13c1 100644 --- a/cmd/admin/package.json +++ b/cmd/admin/package.json @@ -1,6 +1,6 @@ { "name": "@cmfx/admin-demo", - "version": "0.7.12", + "version": "0.7.13", "type": "module", "author": { "name": "caixw", @@ -22,7 +22,7 @@ }, "dependencies": { "@solidjs/router": "^0.15.2", - "@cmfx/admin": "0.7.12", + "@cmfx/admin": "0.7.13", "solid-js": "^1.9.3" }, "devDependencies": { diff --git a/cmd/admin/src/main.tsx b/cmd/admin/src/main.tsx index 7936865..4f31a3a 100644 --- a/cmd/admin/src/main.tsx +++ b/cmd/admin/src/main.tsx @@ -102,7 +102,7 @@ const o: Options = { ], 'zh-Hans': [ async () => { return (await import('@cmfx/admin/dev/messages/zh-Hans.ts')).default; }, - async () => { return (await import('./locales/cmn-Hans')).default; }, + async () => { return (await import('./locales/zh-Hans')).default; }, ], }, fallback: 'en', diff --git a/cmd/admin/src/pages/test.tsx b/cmd/admin/src/pages/test.tsx index 51a4d27..21a3d0f 100644 --- a/cmd/admin/src/pages/test.tsx +++ b/cmd/admin/src/pages/test.tsx @@ -8,7 +8,7 @@ import { MessageKey } from '../locales'; export default function Test() { const ctx = useApp(); ctx.locale().t('home'); - const ps = ctx.useParams(); + const ps = ctx.params(); console.log(ps.id); return
{ctx.locale().t('nest.abc') as string},{ ps.id}
; diff --git a/cmfx/cmfx.go b/cmfx/cmfx.go index a07eed2..9696398 100644 --- a/cmfx/cmfx.go +++ b/cmfx/cmfx.go @@ -15,7 +15,7 @@ import ( ) // Version 表示当前框架的版本 -const Version = "0.7.12" +const Version = "0.7.13" // 400 const ( diff --git a/package.json b/package.json index ae0c258..eb7b37c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cmfx/admin-eslint", - "version": "0.7.12", + "version": "0.7.13", "type": "module", "private": true, "author": {