fix: Bug
This commit is contained in:
@@ -5,7 +5,8 @@ export const useStorageStore = defineStore('storageStore',{
|
||||
state:()=>({
|
||||
imgObjStr: '{}',
|
||||
videoObjStr: '{}',
|
||||
audioObjStr: '{}'
|
||||
audioObjStr: '{}',
|
||||
touchBtnZIndex: 1
|
||||
}),
|
||||
getters:{
|
||||
imgObj(state){
|
||||
@@ -16,9 +17,15 @@ export const useStorageStore = defineStore('storageStore',{
|
||||
},
|
||||
audioObj(state){
|
||||
return JSON.parse(state.audioObjStr)
|
||||
},
|
||||
getTouchBtnZIndex(state){
|
||||
return state.touchBtnZIndex
|
||||
}
|
||||
},
|
||||
actions:{
|
||||
setTouchBtnZIndex(index = 1){
|
||||
this.touchBtnZIndex = index
|
||||
},
|
||||
setStorage(type, id, url) {
|
||||
if(type === 'image'){
|
||||
let _obj = JSON.parse(this.imgObjStr)
|
||||
|
||||
Reference in New Issue
Block a user