修复谷歌按钮登录失效问题
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
|
||||
@@ -1,6 +1,7 @@
|
||||
import { createStore } from 'vuex'
|
||||
import UploadFilesModule from './uploadFile/uploadFile'
|
||||
import DesignDetailModule from './Detail/designDetail'
|
||||
import DesignDetailCopy from './Detail/designDetailCopy'
|
||||
import HomeStoreModule from './homeStore/homeStore'
|
||||
import UserHabit from './userHabit/userHabit'
|
||||
import Workspace from './workspace/workspace'
|
||||
@@ -22,6 +23,7 @@ export default createStore<RootState>({
|
||||
modules: {
|
||||
UploadFilesModule,
|
||||
DesignDetailModule,
|
||||
DesignDetailCopy,
|
||||
HomeStoreModule,
|
||||
UserHabit,
|
||||
Workspace,
|
||||
|
||||
Reference in New Issue
Block a user