update
This commit is contained in:
parent
f2b6257a43
commit
90cd5ec582
7 changed files with 89 additions and 26 deletions
|
|
@ -14,6 +14,7 @@ export default new Vuex.Store({
|
|||
tags: [],
|
||||
data: {
|
||||
name: '',
|
||||
tags: [],
|
||||
descriptionShort: '',
|
||||
descriptionLong: '',
|
||||
thumbnail: {
|
||||
|
|
@ -41,7 +42,7 @@ export default new Vuex.Store({
|
|||
},
|
||||
debug: false,
|
||||
validateMain: false,
|
||||
validateMainCallback: () => false
|
||||
validateMainCallback: (d: boolean) => false
|
||||
},
|
||||
mutations: {
|
||||
SET_DEBUG (state, payload) {
|
||||
|
|
@ -74,9 +75,9 @@ export default new Vuex.Store({
|
|||
},
|
||||
VALIDATE_MAIN (state, callback) {
|
||||
state.validateMain = true
|
||||
state.validateMainCallback = () => {
|
||||
state.validateMainCallback = (d: boolean) => {
|
||||
state.validateMain = false
|
||||
return callback()
|
||||
return callback(d)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue