Skip to content

Commit 4d44440

Browse files
committed
【代码评审】AI:写作优化
1 parent 35b2708 commit 4d44440

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

.image/common/ai-feature.png

20.7 KB
Loading

.image/common/ai-preview.gif

348 KB
Loading

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,26 +191,24 @@ ps:核心功能已经实现,正在对接微信小程序中...
191191

192192
### 商城系统
193193

194+
演示地址:<https://doc.iocoder.cn/mall-preview/>
195+
194196
![功能图](/.image/common/mall-feature.png)
195197

196198
![功能图](/.image/common/mall-preview.png)
197199

198-
_前端基于 crmeb uniapp 经过授权重构,优化代码实现,接入芋道快速开发平台_
199-
200-
演示地址:<https://doc.iocoder.cn/mall-preview/>
201-
202200
### ERP 系统
203201

204-
![功能图](/.image/common/erp-feature.png)
205-
206202
演示地址:<https://doc.iocoder.cn/erp-preview/>
207203

208-
### CRM 系统
204+
![功能图](/.image/common/erp-feature.png)
209205

210-
![功能图](/.image/common/crm-feature.png)
206+
### CRM 系统
211207

212208
演示地址:<https://doc.iocoder.cn/crm-preview/>
213209

210+
![功能图](/.image/common/crm-feature.png)
211+
214212
## 🐷 演示图
215213

216214
### 系统功能

src/api/ai/write/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface WriteVO {
1717
platform?: string // 平台
1818
model?: string // 模型
1919
generatedContent?: string // 生成的内容
20-
errorMessage: string // 错误信息
20+
errorMessage?: string // 错误信息
2121
createTime?: Date // 创建时间
2222
}
2323

src/views/ai/write/index/components/Right.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<el-card class="my-card h-full">
3-
<template #header
4-
><h3 class="m-0 px-7 shrink-0 flex items-center justify-between">
3+
<template #header>
4+
<h3 class="m-0 px-7 shrink-0 flex items-center justify-between">
55
<span>预览</span>
66
<!-- 展示在右上角 -->
77
<el-button color="#846af7" v-show="showCopy" @click="copyContent" size="small">
@@ -10,8 +10,8 @@
1010
</template>
1111
复制
1212
</el-button>
13-
</h3></template
14-
>
13+
</h3>
14+
</template>
1515

1616
<div ref="contentRef" class="hide-scroll-bar h-full box-border overflow-y-auto">
1717
<div class="w-full min-h-full relative flex-grow bg-white box-border p-3 sm:p-7">
@@ -105,7 +105,7 @@ watch(copied, (val) => {
105105
}
106106
}
107107
108-
.my-card{
108+
.my-card {
109109
display: flex;
110110
flex-direction: column;
111111

src/views/ai/write/index/components/Tag.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- 标签选项 -->
12
<template>
23
<div class="flex flex-wrap gap-[8px]">
34
<span

src/views/ai/write/index/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<script setup lang="ts">
2121
import Left from './components/Left.vue'
2222
import Right from './components/Right.vue'
23-
import { WriteApi } from '@/api/ai/write'
23+
import { WriteApi, WriteVO } from '@/api/ai/write'
2424
import { WriteExample } from '@/views/ai/utils/constants'
2525
2626
const message = useMessage()
@@ -37,7 +37,7 @@ const stopStream = () => {
3737
3838
/** 执行写作 */
3939
const rightRef = ref<InstanceType<typeof Right>>()
40-
const submit = (data) => {
40+
const submit = (data: WriteVO) => {
4141
abortController.value = new AbortController()
4242
writeResult.value = ''
4343
isWriting.value = true

0 commit comments

Comments
 (0)