修复谷歌按钮登录失效问题
This commit is contained in:
40
src/store/Detail/designDetailCopy.ts
Normal file
40
src/store/Detail/designDetailCopy.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import {Module} from 'vuex'
|
||||
import {RootState} from '../index'
|
||||
|
||||
interface DesignDetailCopy{
|
||||
designDetail:any,
|
||||
designPreviewData:any,
|
||||
frontBack:any,
|
||||
}
|
||||
|
||||
const DesignDetailCopy : Module<DesignDetailCopy,RootState> = {
|
||||
namespaced: true,
|
||||
state:{
|
||||
designDetail:null,
|
||||
designPreviewData:{},
|
||||
frontBack:{},
|
||||
},
|
||||
mutations:{
|
||||
setDesignDetail(state,files){
|
||||
state.designDetail = files
|
||||
},
|
||||
setDesignColthes(state,data){
|
||||
state.designDetail.clothes[data.index] = data.clothes
|
||||
},
|
||||
setDesignOthers(state,data){
|
||||
state.designDetail.others[data.index] = data.others
|
||||
},
|
||||
|
||||
setFrontBack(state,files){
|
||||
state.frontBack = files
|
||||
}
|
||||
// setDesignItemOthers(state,data){
|
||||
// state.designDetail.others[data.index] = data.others
|
||||
// },
|
||||
},
|
||||
actions:{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default DesignDetailCopy
|
||||
Reference in New Issue
Block a user