[新增]ai写作页面完成

This commit is contained in:
hhhero
2024-07-07 18:14:03 +08:00
parent efcf64ed7d
commit 18e87cf967
5 changed files with 305 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<template>
<div class="h-[calc(100vh-var(--top-tool-height)-var(--app-footer-height)-40px)] -m-5 flex">
<Left class="h-full" @submit="submit" />
<Right class="flex-grow" :msg="msg" />
</div>
</template>
<script setup lang="ts">
import Left from './components/Left.vue'
import Right from './components/Right.vue'
import { writeStream } from '@/api/ai/writer'
const msg = ref('')
const submit = async (params) => {
const res = await writeStream(params)
}
</script>
<style scoped></style>