- 在布局中引入 Header 组件并渲染 - 设置页面 SSR 为 false 并启用预渲染 - 更新应用 CSS 样式,设置背景色和尺寸- 配置 Tauri 权限以支持窗口操作 - 新增 Header 组件实现窗口最小化、最大化和关闭功能- 安装 @tauri-apps/api 依赖并更新 package.json 和 lock 文件 - 修改 README 内容为 IT Tools项目简介 - 更新 Tauri 配置文件中的产品标识和构建路径
40 lines
793 B
JSON
40 lines
793 B
JSON
{
|
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
|
"productName": "it-tools",
|
|
"version": "0.1.0",
|
|
"identifier": "cn.nopj.ittools",
|
|
"build": {
|
|
"frontendDist": "../src",
|
|
"devUrl": "http://localhost:5173",
|
|
"beforeDevCommand": "npm run dev",
|
|
"beforeBuildCommand": "npm run build"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "IT Tools",
|
|
"width": 800,
|
|
"height": 600,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"decorations": false
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
|
|
}
|