Browse Source

feat(Photography): 添加 UUID 参数并优化详情页功能

- 在摄影详情页面中引入 UUID 存储
- 添加 UUID 参数到提交数据中
- 优化数据提交流程,增加日志输出
panqiuyao 3 months ago
parent
commit
f50d2f078f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      frontend/src/views/Photography/detail.vue

+ 4 - 0
frontend/src/views/Photography/detail.vue

@@ -240,6 +240,7 @@ import client from "@/stores/modules/client";
 import icpList from '@/utils/ipc'
 const clientStore = client();
 import { getRouterUrl } from '@/utils/appfun'
+import { useUuidStore } from '@/stores/modules/uuid'
 
 import { Close, Warning } from '@element-plus/icons-vue'
 import LoadingDialog from '@/views/Photography/components/LoadingDialog.vue'
@@ -259,6 +260,7 @@ const specificPage = ref('')  // 可指定页面独修改
 // 路由和状态管理初始化
 const route = useRoute();
 const router = useRouter();
+const uuidStore = useUuidStore();
 
 // 完成目录
 const completeDirectory = ref('')
@@ -399,7 +401,9 @@ const generate = async function () {
     template_image_order: form.selectTemplate.template_image_order,
     temp_list,
     token,
+    uuid: uuidStore.getUuid || ''
   }
+  console.log(params);
   // 开启进度弹窗
   requesting.value =  false
   console.log("params", "color:#3f7cff", params);