优化
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { resolveId } from '@/utils/url'
|
||||
import { exportBenchmarkDataToExcel } from '@/utils/excel'
|
||||
import { usePromptStore } from '@/stores/prompt'
|
||||
@@ -15,6 +16,7 @@ import BatchAnalyzeModal from './components/BatchAnalyzeModal.vue'
|
||||
import SavePromptModal from './components/SavePromptModal.vue'
|
||||
|
||||
// ==================== 初始化 ====================
|
||||
const router = useRouter()
|
||||
const promptStore = usePromptStore()
|
||||
|
||||
// ==================== 数据管理 ====================
|
||||
@@ -207,7 +209,7 @@ function handleCopyBatchPrompt(prompt) {
|
||||
// ==================== 创作相关函数 ====================
|
||||
function handleCreateContent(row) {
|
||||
promptStore.setPrompt(row.prompt, row)
|
||||
// 路由已移除
|
||||
router.push('/content-style/copywriting')
|
||||
}
|
||||
|
||||
function handleUseBatchPrompt(prompt) {
|
||||
@@ -217,7 +219,7 @@ function handleUseBatchPrompt(prompt) {
|
||||
}
|
||||
|
||||
promptStore.setPrompt(prompt, { batch: true })
|
||||
// 路由已移除
|
||||
router.push('/content-style/copywriting')
|
||||
}
|
||||
|
||||
// ==================== 保存提示词到服务器 ====================
|
||||
|
||||
Reference in New Issue
Block a user