|
|
@ -3,8 +3,18 @@ export const usePreStore = defineStore({ |
|
|
|
id: 'preinstall', // id必填,且需要唯一
|
|
|
|
// state
|
|
|
|
state: () => { |
|
|
|
return {} |
|
|
|
return { |
|
|
|
currentPreId: '', |
|
|
|
currentPreConfig: {}, |
|
|
|
} |
|
|
|
}, |
|
|
|
// actions
|
|
|
|
actions: {}, |
|
|
|
actions: { |
|
|
|
updateCurrentPreId(currentPreId) { |
|
|
|
this.currentPreId = currentPreId |
|
|
|
}, |
|
|
|
updateCurrentPreConfig(currentPreConfig) { |
|
|
|
this.currentPreConfig = currentPreConfig |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |