This commit is contained in:
杨航
2025-11-07 16:04:18 +08:00
parent bed10d3a61
commit 61dfa8b721
4 changed files with 19 additions and 4 deletions
+8 -1
View File
@@ -10,7 +10,8 @@ export const useStorageStore = defineStore('storageStore',{
showPreviewDetail: false,
fileType: 'iamge',
fileId: '',
fileSrc: ''
fileSrc: '',
gettingVoiceId: ''
}),
getters:{
imgObj(state){
@@ -37,8 +38,14 @@ export const useStorageStore = defineStore('storageStore',{
getFileSrc(state){
return state.fileSrc
},
getGettingVoiceId(state){
return state.gettingVoiceId
},
},
actions:{
setGettingVoiceId(id){
return this.gettingVoiceId = id
},
setShowPreviewDetail({ status = false, fileType = 'image', fileId = '', fileSrc = '' }){
this.showPreviewDetail = status
this.fileId = fileId