This commit is contained in:
Json_Lee 2025-06-11 09:43:20 +08:00
commit 206595146e
4 changed files with 95 additions and 95 deletions

View File

@ -5,8 +5,6 @@
"ComputedRef": true, "ComputedRef": true,
"DirectiveBinding": true, "DirectiveBinding": true,
"EffectScope": true, "EffectScope": true,
"ElMessage": true,
"ElMessageBox": true,
"ExtractDefaultPropTypes": true, "ExtractDefaultPropTypes": true,
"ExtractPropTypes": true, "ExtractPropTypes": true,
"ExtractPublicPropTypes": true, "ExtractPublicPropTypes": true,

View File

@ -6,18 +6,27 @@
</div> </div>
<div align="center">
<img src="https://cdn.element-plus-x.com/chat/1.webp" />
</div>
## 🚀 项目亮点 ## 🚀 项目亮点
**ruoyi-element-ai** 是基于 **Vue3.5** + **Element-Plus-X** + **TypeScript** 的企业级AI应用模板搭配 **ruoyi-ai** 后端,快速构建仿豆包/通义的全栈AI项目。 **ruoyi-element-ai** 是基于 **Vue3.5** + **Element-Plus-X** + **hook-fetch** + **TypeScript** + **Eslint9** 开发的企业级AI应用模板搭配 **ruoyi-ai** 后端,快速构建仿豆包/通义的全栈AI项目。
## 💡 核心优势 ## 💡 核心优势
- 最新技术栈Vue3.5/Vite5/Pinia3/TypeScript5.8 - 最新技术栈Vue3.5+/Vite6/Pinia3/TypeScript5
- 流式交互Hook-Fetch支持Server-Sent Events - 流式交互Hook-Fetch支持Server-Sent Events,插件化写法优雅的一批
- 企业级规范ESLint/Stylelint/husky/commitlint全链路校验 - 企业级规范ESLint/Stylelint/husky/commitlint全链路校验
- 开箱即用:内置动态路由、状态管理、组件库封装 - 全栈项目:集成 ruoyi-ai 后端服务,快速开发
- 开箱即用内置动态路由、状态管理、组件库封装、hooks封装
## 🎯 开发文档
帮助你快速熟悉项目
<div align="center"> <div align="center">
<img src="https://cdn.element-plus-x.com/chat/1.webp" calss="element-plus-x-bubble" /> <img src="https://cdn.element-plus-x.com/chat/docs1.webp" />
</div> </div>
## 🔗 关键链接 ## 🔗 关键链接
@ -25,9 +34,9 @@
| 功能模块 | 说明 | 链接 | | 功能模块 | 说明 | 链接 |
|------------------|-------------------------------|----------------------------------------------------------------------| |------------------|-------------------------------|----------------------------------------------------------------------|
| 🚀 前端仓库 | Gitee/GitHub 代码仓库(感谢 star🥰爱你爱你😘) | [Gitee](https://gitee.com/he-jiayue/ruoyi-element-ai) <br> [GitHub](https://github.com/element-plus-x/ruoyi-element-ai) | | 🚀 前端仓库 | Gitee/GitHub 代码仓库(感谢 star🥰爱你爱你😘) | [Gitee](https://gitee.com/he-jiayue/ruoyi-element-ai) <br> [GitHub](https://github.com/element-plus-x/ruoyi-element-ai) |
| 🛠️ 后端仓库 | 待补充支持Java/Node | 待更新 | | 🛠️ 后端仓库 | Java服务功能丰富强大 | [Gitee](https://gitee.com/ageerle/ruoyi-ai) <br> [GitHub](https://github.com/ageerle/ruoyi-ai) |
| 📚 前端文档 | 开发指南/组件说明 | [快速了解项目](https://chat-docs.element-plus-x.com) | | 📚 前端文档 | 开发指南/项目说明 | [快速了解项目](https://chat-docs.element-plus-x.com) |
| 📡 在线演示 | 实时交互体验 | [立即访问](https://chat.element-plus-x.com) | | 📡 在线演示 | 实时交互体验 | [在线预览](https://chat.element-plus-x.com) |
## 🧰 核心功能 ## 🧰 核心功能
@ -68,16 +77,26 @@ pnpm lint:stylelint # 样式格式化
pnpm cz # 规范提交自动执行lint pnpm cz # 规范提交自动执行lint
``` ```
## 🧸 即将推出 (含 ruoyi-ai 接口联调)
- [x] 会话管理
- [x] 发送消息
- [x] 登录注册
- [ ] md 渲染
- [ ] 编辑输入框
- [ ] 文件上传
- [ ] 其他...
## 🤝 社区支持 ## 🤝 社区支持
| 👨‍👨‍👧‍👦 微信交流群 | 💩 作者微信 | | 👨‍👨‍👧‍👦 微信交流群 | 💩 作者微信 |
|---------------------------------------|-------------------------------------| |---------------------------------------|-------------------------------------|
| <img src="https://cdn.element-plus-x.com/vx-2025-06-06.png" alt="微信交流群" width="100%"><br>扫码加入交流群<br>获取最新动态与技术支持 | <img src="https://cdn.element-plus-x.com/element-plus-x-author-vx.png" alt="作者vx" width="100%" ><br>群过期或失效?<br>扫码添加作者微信 | | <img src="https://cdn.element-plus-x.com/vx-2025-06-06.png" alt="微信交流群" width="230px" height="300px" ><br>扫码加入交流群<br>获取最新动态与技术支持 | <img src="https://cdn.element-plus-x.com/vx.png" alt="作者vx" width="230px" height="300px" ><br>群过期或失效?<br>扫码添加作者微信 |
## 🌟 留下赞赏,助力开源 ## 🌹 赠人玫瑰,手有余香
<div align="center"> <div align="center">
<h3 style="color: #fa8c16; margin-bottom: 10px;">🙊感谢您的支持!🙊</h3>
<p>😍开源是热爱的坚持,您的每一份心意都让我们走得更远~😍</p> <p>😍开源是热爱的坚持,您的每一份心意都让我们走得更远~😍</p>
<p style="color: #666; margin: 15px 0;">💌 扫码赞赏,后续将截图保留,并公示赞赏记录💌<br>💖感谢每一份温暖助力 💖</p> <img src="https://cdn.element-plus-x.com/zs1.webp" alt="赞赏" width="230px" height="100%" />
<img src="https://cdn.element-plus-x.com/zs.png" alt="赞赏" width="180" style="margin-bottom: 20px; border-radius: 4px;" /> <h3 style="color: #fa8c16; margin-bottom: 10px;">🙊扫码赞赏,感谢您的支持!🙊</h3>
<p style="color: #666; margin: 15px 0;">💖感谢每一份温暖助力💖</p>
<p style="color: #666; margin: 15px 0;">💌 后续将截图保留,并公示赞赏记录 💌</p>
</div> </div>
</div> </div>

View File

@ -16,9 +16,9 @@ export const layoutRouter: RouteRecordRaw[] = [
// title: '通用聊天页面', // title: '通用聊天页面',
isDefaultChat: true, isDefaultChat: true,
icon: 'HomeFilled', icon: 'HomeFilled',
isHide: '1', // isHide: '1', // 是否在菜单中隐藏[0是1否] 预留
isKeepAlive: '0', // 是否缓存路由数据[0是1否] // isKeepAlive: '0', // 是否缓存路由数据[0是1否] 预留
isFull: '1', // 是否缓存全屏[0是1否] // isFull: '1', // 是否全屏[0是1否] 预留
// enName: "Master Station", // 英文名称 预留 // enName: "Master Station", // 英文名称 预留
}, },
}, },

View File

@ -6,85 +6,68 @@
// biome-ignore lint: disable // biome-ignore lint: disable
export {} export {}
declare global { declare global {
const EffectScope: (typeof import("vue"))["EffectScope"]; const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: (typeof import("element-plus/es"))["ElMessage"]; const ElMessage: (typeof import("element-plus/es"))["ElMessage"]
const ElMessageBox: (typeof import("element-plus/es"))["ElMessageBox"]; const ElMessageBox: (typeof import("element-plus/es"))["ElMessageBox"]
const computed: (typeof import("vue"))["computed"]; const computed: typeof import('vue')['computed']
const createApp: (typeof import("vue"))["createApp"]; const createApp: typeof import('vue')['createApp']
const customRef: (typeof import("vue"))["customRef"]; const customRef: typeof import('vue')['customRef']
const defineAsyncComponent: (typeof import("vue"))["defineAsyncComponent"]; const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: (typeof import("vue"))["defineComponent"]; const defineComponent: typeof import('vue')['defineComponent']
const effectScope: (typeof import("vue"))["effectScope"]; const effectScope: typeof import('vue')['effectScope']
const getCurrentInstance: (typeof import("vue"))["getCurrentInstance"]; const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: (typeof import("vue"))["getCurrentScope"]; const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: (typeof import("vue"))["h"]; const h: typeof import('vue')['h']
const inject: (typeof import("vue"))["inject"]; const inject: typeof import('vue')['inject']
const isProxy: (typeof import("vue"))["isProxy"]; const isProxy: typeof import('vue')['isProxy']
const isReactive: (typeof import("vue"))["isReactive"]; const isReactive: typeof import('vue')['isReactive']
const isReadonly: (typeof import("vue"))["isReadonly"]; const isReadonly: typeof import('vue')['isReadonly']
const isRef: (typeof import("vue"))["isRef"]; const isRef: typeof import('vue')['isRef']
const markRaw: (typeof import("vue"))["markRaw"]; const markRaw: typeof import('vue')['markRaw']
const nextTick: (typeof import("vue"))["nextTick"]; const nextTick: typeof import('vue')['nextTick']
const onActivated: (typeof import("vue"))["onActivated"]; const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: (typeof import("vue"))["onBeforeMount"]; const onBeforeMount: typeof import('vue')['onBeforeMount']
const onBeforeUnmount: (typeof import("vue"))["onBeforeUnmount"]; const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
const onBeforeUpdate: (typeof import("vue"))["onBeforeUpdate"]; const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
const onDeactivated: (typeof import("vue"))["onDeactivated"]; const onDeactivated: typeof import('vue')['onDeactivated']
const onErrorCaptured: (typeof import("vue"))["onErrorCaptured"]; const onErrorCaptured: typeof import('vue')['onErrorCaptured']
const onMounted: (typeof import("vue"))["onMounted"]; const onMounted: typeof import('vue')['onMounted']
const onRenderTracked: (typeof import("vue"))["onRenderTracked"]; const onRenderTracked: typeof import('vue')['onRenderTracked']
const onRenderTriggered: (typeof import("vue"))["onRenderTriggered"]; const onRenderTriggered: typeof import('vue')['onRenderTriggered']
const onScopeDispose: (typeof import("vue"))["onScopeDispose"]; const onScopeDispose: typeof import('vue')['onScopeDispose']
const onServerPrefetch: (typeof import("vue"))["onServerPrefetch"]; const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: (typeof import("vue"))["onUnmounted"]; const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: (typeof import("vue"))["onUpdated"]; const onUpdated: typeof import('vue')['onUpdated']
const onWatcherCleanup: (typeof import("vue"))["onWatcherCleanup"]; const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
const provide: (typeof import("vue"))["provide"]; const provide: typeof import('vue')['provide']
const reactive: (typeof import("vue"))["reactive"]; const reactive: typeof import('vue')['reactive']
const readonly: (typeof import("vue"))["readonly"]; const readonly: typeof import('vue')['readonly']
const ref: (typeof import("vue"))["ref"]; const ref: typeof import('vue')['ref']
const resolveComponent: (typeof import("vue"))["resolveComponent"]; const resolveComponent: typeof import('vue')['resolveComponent']
const shallowReactive: (typeof import("vue"))["shallowReactive"]; const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: (typeof import("vue"))["shallowReadonly"]; const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: (typeof import("vue"))["shallowRef"]; const shallowRef: typeof import('vue')['shallowRef']
const toRaw: (typeof import("vue"))["toRaw"]; const toRaw: typeof import('vue')['toRaw']
const toRef: (typeof import("vue"))["toRef"]; const toRef: typeof import('vue')['toRef']
const toRefs: (typeof import("vue"))["toRefs"]; const toRefs: typeof import('vue')['toRefs']
const toValue: (typeof import("vue"))["toValue"]; const toValue: typeof import('vue')['toValue']
const triggerRef: (typeof import("vue"))["triggerRef"]; const triggerRef: typeof import('vue')['triggerRef']
const unref: (typeof import("vue"))["unref"]; const unref: typeof import('vue')['unref']
const useAttrs: (typeof import("vue"))["useAttrs"]; const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: (typeof import("vue"))["useCssModule"]; const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: (typeof import("vue"))["useCssVars"]; const useCssVars: typeof import('vue')['useCssVars']
const useId: (typeof import("vue"))["useId"]; const useId: typeof import('vue')['useId']
const useModel: (typeof import("vue"))["useModel"]; const useModel: typeof import('vue')['useModel']
const useSlots: (typeof import("vue"))["useSlots"]; const useSlots: typeof import('vue')['useSlots']
const useTemplateRef: (typeof import("vue"))["useTemplateRef"]; const useTemplateRef: typeof import('vue')['useTemplateRef']
const watch: (typeof import("vue"))["watch"]; const watch: typeof import('vue')['watch']
const watchEffect: (typeof import("vue"))["watchEffect"]; const watchEffect: typeof import('vue')['watchEffect']
const watchPostEffect: (typeof import("vue"))["watchPostEffect"]; const watchPostEffect: typeof import('vue')['watchPostEffect']
const watchSyncEffect: (typeof import("vue"))["watchSyncEffect"]; const watchSyncEffect: typeof import('vue')['watchSyncEffect']
} }
// for type re-export // for type re-export
declare global { declare global {
// @ts-ignore // @ts-ignore
export type { export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
Component, import('vue')
Slot,
Slots,
ComponentPublicInstance,
ComputedRef,
DirectiveBinding,
ExtractDefaultPropTypes,
ExtractPropTypes,
ExtractPublicPropTypes,
InjectionKey,
PropType,
Ref,
MaybeRef,
MaybeRefOrGetter,
VNode,
WritableComputedRef,
} from "vue";
import("vue");
} }