mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 12:18:43 +08:00 
			
		
		
		
	【代码评审】AI:写作优化
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								.image/common/ai-feature.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.image/common/ai-feature.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 21 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								.image/common/ai-preview.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.image/common/ai-preview.gif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 348 KiB  | 
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@@ -191,26 +191,24 @@ ps:核心功能已经实现,正在对接微信小程序中...
 | 
			
		||||
 | 
			
		||||
### 商城系统
 | 
			
		||||
 | 
			
		||||
演示地址:<https://doc.iocoder.cn/mall-preview/>
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||

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

 | 
			
		||||
 | 
			
		||||
演示地址:<https://doc.iocoder.cn/erp-preview/>
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
### CRM 系统
 | 
			
		||||
 | 
			
		||||

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

 | 
			
		||||
 | 
			
		||||
## 🐷 演示图
 | 
			
		||||
 | 
			
		||||
### 系统功能
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ export interface WriteVO {
 | 
			
		||||
  platform?: string // 平台
 | 
			
		||||
  model?: string // 模型
 | 
			
		||||
  generatedContent?: string // 生成的内容
 | 
			
		||||
  errorMessage: string // 错误信息
 | 
			
		||||
  errorMessage?: string // 错误信息
 | 
			
		||||
  createTime?: Date // 创建时间
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <el-card class="my-card h-full">
 | 
			
		||||
    <template #header
 | 
			
		||||
      ><h3 class="m-0 px-7 shrink-0 flex items-center justify-between">
 | 
			
		||||
    <template #header>
 | 
			
		||||
      <h3 class="m-0 px-7 shrink-0 flex items-center justify-between">
 | 
			
		||||
        <span>预览</span>
 | 
			
		||||
        <!-- 展示在右上角 -->
 | 
			
		||||
        <el-button color="#846af7" v-show="showCopy" @click="copyContent" size="small">
 | 
			
		||||
@@ -10,8 +10,8 @@
 | 
			
		||||
          </template>
 | 
			
		||||
          复制
 | 
			
		||||
        </el-button>
 | 
			
		||||
      </h3></template
 | 
			
		||||
    >
 | 
			
		||||
      </h3>
 | 
			
		||||
    </template>
 | 
			
		||||
 | 
			
		||||
    <div ref="contentRef" class="hide-scroll-bar h-full box-border overflow-y-auto">
 | 
			
		||||
      <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) => {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.my-card{
 | 
			
		||||
.my-card {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: column;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
<!-- 标签选项 -->
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="flex flex-wrap gap-[8px]">
 | 
			
		||||
    <span
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@
 | 
			
		||||
<script setup lang="ts">
 | 
			
		||||
import Left from './components/Left.vue'
 | 
			
		||||
import Right from './components/Right.vue'
 | 
			
		||||
import { WriteApi } from '@/api/ai/write'
 | 
			
		||||
import { WriteApi, WriteVO } from '@/api/ai/write'
 | 
			
		||||
import { WriteExample } from '@/views/ai/utils/constants'
 | 
			
		||||
 | 
			
		||||
const message = useMessage()
 | 
			
		||||
@@ -37,7 +37,7 @@ const stopStream = () => {
 | 
			
		||||
 | 
			
		||||
/** 执行写作 */
 | 
			
		||||
const rightRef = ref<InstanceType<typeof Right>>()
 | 
			
		||||
const submit = (data) => {
 | 
			
		||||
const submit = (data: WriteVO) => {
 | 
			
		||||
  abortController.value = new AbortController()
 | 
			
		||||
  writeResult.value = ''
 | 
			
		||||
  isWriting.value = true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user