# Tauri-Template **Repository Path**: ZeroOpens/tauri-template ## Basic Information - **Project Name**: Tauri-Template - **Description**: 本项目为 Tauri 2x 模版项目,前端采用了 Vue3 + Ts 开发 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2025-05-05 - **Last Updated**: 2025-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: Rust, TypeScript, Vue, tauri ## README # Tauri 模版项目

logo

使用 Vue3 + Ts 的 Tauri 2x 模版


Rust Vue3 Rust TypeScript
--- ### 📝项目介绍 本项目为 Tauri 2x 模版项目,前端采用了 Vue3 + Ts 开发,配置了基础的功能,项目采用了规范的目录结构,方便开发者快速上手和协作开发。 ### 🖼️ 界面展示
软件截图 软件截图 软件截图 软件截图 软件截图
### ✨ 功能特性
  1. 添加 axios 网络请求功能
  2. 配置 router 路由导航
  3. 添加 pinia,配置持久化
### 🛠️ 推荐安装插件 1. Vue - Official Vue - Official 2. Tauri Tauri 3. rust-analyzer rust-analyzer ### 📥 使用教程 点击查看前置条件 1. 拉取项目 ```shell # gitee git clone https://gitee.com/ZeroOpens/tauri-template.git # github git clone https://github.com/ZeroOpens/Tauri-Template.git ``` 2. 安装依赖 ```shell # npm npm install -g pnpm # pnpm pnpm install ``` 3. 运行程序 ```shell # 运行 pnpm tauri dev ``` 4. 打包程序 ```shell # 打包 pnpm tauri build ``` ### 📁 工程结构解析 ``` Tauri-Template ├── src # 前端目录 │ ├── assets # 静态资源 │ ├── components # 全局组件 │ ├── hooks # 复用函数 │ ├── pages # 路由页面 │ ├── router # 路由配置 │ ├── services # 网络请求 │ ├── stores # 存储配置 │ ├── types # 类型声明 │ ├── utils # 工具函数 │ ├── App.vue # 根组件 │ └── main.ts # 入口文件 │ └── vite-env.d.ts # Vite 类型声明文件 ├── src-tauri # 后端目录 │ ├── icons # 应用图标 │ ├── src # Rust 源码目录 │ │ ├── handlers # 命令处理器 │ │ ├── models # 数据模型 │ │ ├── services # 业务逻辑 │ │ ├── utils # 工具函数 │ │ ├── error.rs # 错误处理 │ │ └── lib.rs # 服务层 │ │ └── main.rs # 程序入口 │ ├── tauri.conf.json # Tauri 项目的核心配置 │ └── Cargo.toml # Rust 项目的依赖 ├── .gitignore # git 忽略文件 ├── index.html # H5 端首页 ├── LICENSE # 开源协议 ├── package.json # 前端依赖 ├── README.md # Markdown 说明文档 └── vite.config.ts # vite 配置 ``` ### 📌 版本更新详情
版本号 发布日期 更新内容
v1.5.0 2025-10-02
  • 添加后端api请求示例代码
  • 添加请求后端api示例页面
v1.4.0 2025-09-20
  • Tauri 版本更新至 2.8.5
  • 添加loading组件替换更新组件
  • 前端页面和样式调整
v1.3.0 2025-07-30
  • tauri 版本升级2.6.2
  • 优化风格与布局
  • 添加更多示例
v1.2.1 2025-05-10
  • 添加router
  • 添加pinia、持久化插件
  • 添加更多的思路
  • 添加更多示例
v1.1.1 2025-05-06
  • 添加axios和拦截器
  • 添加跨域问题解决方法
  • 添加更多示例
v1.1.0 2025-05-06
  • 添加更多示例
  • 修改、删除多余文件
  • 配置 @ 指定前端src为顶级文件
v1.0.0 2025-05-05
  • 初始版本发布