更改ai魔改
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user