代码调整
This commit is contained in:
parent
2892517d36
commit
bc9d81c301
16
src/App.vue
16
src/App.vue
@ -89,13 +89,15 @@ export default {
|
||||
}
|
||||
});
|
||||
window.addEventListener('storage', e => {
|
||||
if (e.key == 'setTrainingOperate') {
|
||||
const operate = JSON.parse(e.newValue);
|
||||
this.$store.dispatch('trainingNew/setTrainingOperate', operate);
|
||||
}
|
||||
if (e.key == 'setSceneOperate') {
|
||||
const operate = JSON.parse(e.newValue);
|
||||
this.$store.dispatch('trainingNew/setSceneOperate', operate);
|
||||
if (this.$route.path.includes('trainingDesign')) {
|
||||
if (e.key == 'setTrainingOperate') {
|
||||
const operate = JSON.parse(e.newValue);
|
||||
this.$store.dispatch('trainingNew/setTrainingOperate', operate);
|
||||
}
|
||||
if (e.key == 'setSceneOperate') {
|
||||
const operate = JSON.parse(e.newValue);
|
||||
this.$store.dispatch('trainingNew/setSceneOperate', operate);
|
||||
}
|
||||
}
|
||||
});
|
||||
this.$nextTick(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user