-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05242c0
commit 7d62700
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template> | ||
<div> | ||
<div class="w-full"> | ||
</div> | ||
<div class="gva-search-box" > | ||
<div class="w-full relative"> | ||
<el-input v-model="prompt" type="textarea" :rows="8" class="w-full"></el-input> | ||
<el-button :loading="loading" @click="aiPainter" type="primary" class="absolute right-2 bottom-2"><ai-gva />{{html?'修改':'生成'}}</el-button> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import {painter} from "@/api/autoCode"; | ||
import { ref } from 'vue' | ||
const loading = ref(false) | ||
const prompt = ref('') | ||
const html = ref(``) | ||
const aiPainter = async () => { | ||
const res = await painter({ | ||
html: html.value, | ||
prompt: prompt.value | ||
}) | ||
html.value = res.data | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,6 @@ module.exports = { | |
}, | ||
}, | ||
darkMode: "class", | ||
plugins: [], | ||
corePlugins: { | ||
preflight: false | ||
} | ||
plugins: [] | ||
} | ||
|