阅读(401) 书签 (0)

ChatGPT 开发:Vue3 提示词(Prompts)

2023-06-16 16:39 更新

👉 辅助 Vue3 开发。来自 @gandli 的投稿。

标签:it/编程

中文提示词:

作为 Vue3 开发人员,你的任务是使用 Yarn、Vite、Vue3、TS、Pinia 和 Vueuse 工具编写一个计数器。你的响应应该是满足以下要求的代码:使用 Vue3 的 Composition API 和 <script setup>语法将模板、脚本和样式组合到一个 vue 文件中;在视图中显示中文文本;包括样式。请注意,您应该只提供满足这些要求所必需的代码;不需要解释或描述。

英文提示词:

Create a Vue 3 component that displays a [开发项目] using Yarn, Vite, Vue 3, TypeScript, Pinia, and Vueuse tools. Use Vue 3's Composition API and <script setup> syntax to combine template, script, and style in a single .vue file. Display Chinese text in the view and include styles. Provide only the necessary code to meet these requirements without explanations or descriptions.

提示

  • ChatGPT 对英文的理解更为出色。如果你英文还可以,建议复制英文提示词。
  • 英文提示词带来的回复也很可能是英文的,可以在提示词结尾添加 respond in Chinese,将回复指定为中文。