feat: 多功能更新
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { ImageService } from "~/services";
|
||||
import { useUserStore } from "~/stores";
|
||||
|
||||
const userStore = useUserStore();
|
||||
const { isOnline } = storeToRefs(userStore);
|
||||
|
||||
const prompt = ref("");
|
||||
const imageUrl = ref("");
|
||||
@@ -47,7 +50,12 @@ const generate = async () => {
|
||||
:disabled="loading"
|
||||
/>
|
||||
|
||||
<el-button type="primary" :loading="loading" @click="generate">
|
||||
<el-button
|
||||
type="primary"
|
||||
:loading="loading"
|
||||
:disabled="!isOnline"
|
||||
@click="generate"
|
||||
>
|
||||
立即生成
|
||||
</el-button>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user