给所有的 AI 任务提交按钮添加loading状态

This commit is contained in:
RockYang
2025-08-12 09:17:01 +08:00
parent 5a4778074e
commit f82270d097
10 changed files with 89 additions and 38 deletions

View File

@@ -137,7 +137,7 @@
<div class="flex justify-center">
<button
@click="store.createLumaVideo"
:loading="store.generating"
:disabled="store.generating"
class="w-full py-3 bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-xl disabled:from-gray-400 disabled:to-gray-400 disabled:cursor-not-allowed hover:from-blue-600 hover:to-purple-700 transition-all duration-200 flex items-center justify-center space-x-2 text-base"
>
<i v-if="store.generating" class="iconfont icon-loading animate-spin"></i>
@@ -455,7 +455,7 @@
<div class="flex justify-center">
<button
@click="store.createKelingVideo"
:loading="store.generating"
:disabled="store.generating"
class="w-full py-3 bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-xl disabled:from-gray-400 disabled:to-gray-400 disabled:cursor-not-allowed hover:from-blue-600 hover:to-purple-700 transition-all duration-200 flex items-center justify-center space-x-2 text-base"
>
<i v-if="store.generating" class="iconfont icon-loading animate-spin"></i>