From cb67026821e62f95fcb86bacdc5f096392b08b8f Mon Sep 17 00:00:00 2001 From: zhengshunjin <2667579369@qq.com> Date: Sat, 15 Aug 2026 09:31:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(router):=20=E6=B7=BB=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E8=8A=82=E5=AF=B9=E8=B1=A1=E8=BD=ACHex=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 ByteToHexView.vue 页面组件,实现JSON对象到十六进制字符串转换 - 在路由配置中注册 byte-to-hex 路径 - 在侧边栏菜单中添加字节对象转Hex导航项 - 实现JSON对象解析和十六进制转换核心逻辑 - 添加示例数据和自动转换功能 - 集成复制结果到剪贴板功能 --- .../src/layout/components/Sidebar/index.vue | 10 +- flask-ui/src/router/index.ts | 5 + flask-ui/src/views/ByteToHexView.vue | 402 ++++++++++++++++++ 3 files changed, 415 insertions(+), 2 deletions(-) create mode 100644 flask-ui/src/views/ByteToHexView.vue diff --git a/flask-ui/src/layout/components/Sidebar/index.vue b/flask-ui/src/layout/components/Sidebar/index.vue index 2fa7a8a..08422f0 100644 --- a/flask-ui/src/layout/components/Sidebar/index.vue +++ b/flask-ui/src/layout/components/Sidebar/index.vue @@ -23,13 +23,19 @@ const {isCollapse} = storeToRefs(isCollapseStore) 统计 - + + + + + 字节对象转Hex + + Navigator Three - + diff --git a/flask-ui/src/router/index.ts b/flask-ui/src/router/index.ts index 1e4ff95..b59d6bb 100644 --- a/flask-ui/src/router/index.ts +++ b/flask-ui/src/router/index.ts @@ -19,6 +19,11 @@ const router = createRouter({ name: 'About', component: () => import('../views/AboutView.vue'), }, + { + path: 'byte-to-hex', + name: 'ByteToHex', + component: () => import('../views/ByteToHexView.vue'), + }, ], }, { diff --git a/flask-ui/src/views/ByteToHexView.vue b/flask-ui/src/views/ByteToHexView.vue new file mode 100644 index 0000000..5647235 --- /dev/null +++ b/flask-ui/src/views/ByteToHexView.vue @@ -0,0 +1,402 @@ + + + + 🔑 字节对象 → Hex 密钥 + + 将键为数字索引的 JSON 对象转换为 32 位十六进制字符串(适用于 AES‑128 密钥) + + + 输入 JSON 对象 + + + + 🔄 转换 + + 📋 复制 Hex + + 已复制! + + + + + 转换结果 + + + + + + 💡 点击 加载示例 快速体验 + + + + + + + + + +
+ 将键为数字索引的 JSON 对象转换为 32 位十六进制字符串(适用于 AES‑128 密钥) +