更改ai魔改

This commit is contained in:
李志鹏
2025-10-31 10:27:27 +08:00
parent 009c01b535
commit ef3e117451
3 changed files with 12 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
// 每一个存储的模块命名规则use开头store结尾
import { defineStore } from 'pinia'
import MyEvent from '@/utils/myEvent'
import { uploadCustomerPhoto } from '@/api/workshop'
MyEvent.add('clear-generate-state', () => useGenerateStore().clearGenerateData())
export const useGenerateStore = defineStore({
@@ -118,6 +119,11 @@ export const useGenerateStore = defineStore({
this.customizeInfo.isRegenerated = ''
this.customizeInfo.isFavorite = false
},
uploadCustomizeInfo(data: object){
for (let key in data) {
this.customizeInfo[key] = data[key]
}
},
clearCustomerInfo(){
this.customerInfo = {
customerId: '',