From c23f06df50e1e907744ec09c507b063db1ff0b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E7=84=B6?= Date: Mon, 2 Mar 2026 20:51:27 +0800 Subject: [PATCH] fix --- README.md | 24 ++++++++++++-- src/router/router.ts | 20 ++++++------ ssr.config.ts | 78 ++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 104 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index dacefc4..302bbc4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

只需简单几步,即可快速搭建属于自己的在线工具箱。

-[![node](https://img.shields.io/badge/any_text-18.14.2-red?label=node)](node) +[![node](https://img.shields.io/badge/any_text-22.21.1-red?label=node)](node) [![vue](https://img.shields.io/badge/any_text-3.3.10-origin?label=vue)](vue) [![tailwindcss](https://img.shields.io/badge/any_text-3.3.5-yellow?label=tailwindcss)](tailwindcss) [![elementplus](https://img.shields.io/badge/any_text-2.7-blue?label=element-plus)](elementplus) @@ -98,6 +98,12 @@ pnpm build:pro - js代码格式化/压缩 - Html代码格式化 - Css代码格式化/压缩 + - Base64加解密 + - 进制转换计算器 + - 数据存储单位换算 + - Hash计算器 + - XML格式化 + - SQL格式化 - 文本处理 - 文本对比 @@ -106,6 +112,9 @@ pnpm build:pro - 文本去重 - 在线文本编辑/HTML获取 - 字数统计 + - 文本替换 + - 文本处理工作流 + - 词频统计 - 教育学术 - 单位换算 @@ -126,24 +135,35 @@ pnpm build:pro - 在线图片处理 - 文本转图片 - 图片分割 + - 传图取色 + - 图片水印添加 - 数据图表 - 柱状图 - 折线图 - 饼图 - 散点图 + - 词云生成 - 选择随机 - 生成随机数 - 帮我决定 - 抛硬币 - 投骰子 + - 抽签工具 + - 转盘工具 - 其他工具 - 数字转金额大写 - 手持弹幕 - 色板 - Color选择器 + - 番茄时钟 + - 反应速度测试 + - m3u8在线播放 + - 剪刀石头布 + - Emoji表情大全 + - 简易计算器 ## 其他 @@ -152,7 +172,7 @@ Q: 我应该如何添加新功能? A: - 在`components/Tools/tools.ts`文件中添加工具信息 - 在`router/router.ts`中添加路由 - - 拷贝示例目录`components/Tools/Example`修改名称,在这个拷贝出来的目录中开发工具即可 + - 目录`components/Tools`中添加新的工具组件
diff --git a/src/router/router.ts b/src/router/router.ts index 9de36ae..d098398 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -71,16 +71,16 @@ export const constantRoute = [ description: '在线字数计数器,主要是方便计算字数,以控制文字数量的小工具(小说作者、论文、文案文档、文字编辑必备工具)。', } }, - { - path: '/ip', - component: () => import('@/components/Tools/Ip/Ip.vue'), - name: 'ip', - meta: { - title: "IP查询", - keywords: 'ip,ip查询,ip地址查询,ip138,查ip,我的ip,公网ip,ip归属地查询', - description: '公网ip地址归属地查询', - } - }, + // { + // path: '/ip', + // component: () => import('@/components/Tools/Ip/Ip.vue'), + // name: 'ip', + // meta: { + // title: "IP查询", + // keywords: 'ip,ip查询,ip地址查询,ip138,查ip,我的ip,公网ip,ip归属地查询', + // description: '公网ip地址归属地查询', + // } + // }, { path: '/scaletran', component: () => import('@/components/Tools/ScaleTran/ScaleTran.vue'), diff --git a/ssr.config.ts b/ssr.config.ts index d5e4d47..de12dc0 100644 --- a/ssr.config.ts +++ b/ssr.config.ts @@ -1,10 +1,76 @@ -import {constantRoute} from "./src/router/router" -import vitePluginSeoPrerender from "vite-plugin-seo-prerender"; +// import vitePluginSeoPrerender from "vite-plugin-seo-prerender"; + + +import seoPrerender from "vite-plugin-seo-prerender"; + export function seoperender(){ - const filterPath = ['/:pathMatch(.*)*', '/404']; // 排除的路径 - return vitePluginSeoPrerender({ - routes: constantRoute.map(routeConfig => routeConfig.path).filter(path => !filterPath.includes(path)), - network: true, + return seoPrerender({ + routes: [ + '/', + '/timetran', + '/md5', + '/json', + '/reg', + '/unicode', + '/wordcount', + '/scaletran', + '/signimage', + '/randompassword', + '/urlencode', + '/ascii', + '/uuid', + '/barrage', + '/unit', + '/qrcode', + '/decision', + '/morse', + '/random', + '/numbertochinese', + '/diff', + '/markdown', + '/texttoimg', + '/webinfo', + '/bar', + '/line', + '/pie', + '/scatter', + '/coin', + '/dice', + '/textremoveduplicate', + '/imgcut', + '/httpstatuscode', + '/jwt', + '/htmlentity', + '/colorpicker', + '/asciiwordpic', + '/jsforamt', + '/htmlformat', + '/cssformat', + '/textedit', + '/base64', + '/baseconverter', + '/storageconverter', + '/hashcalculator', + '/xmlformat', + '/sqlformat', + '/textreplace', + '/textworkflow', + '/emoji', + '/wordfrequency', + '/wordcloud', + '/lottery', + '/rockpaperscissors', + '/wheel', + '/imagecolorpicker', + '/pomodoro', + '/calculator', + '/reactiontest', + '/m3u8player', + '/imagewatermark', + '/colorpalette', + '/about' + ], + // network: true, // removeStyle: true }) } \ No newline at end of file