代码调整

This commit is contained in:
fan 2020-03-17 10:07:02 +08:00
parent 4ab462ed5d
commit 022cf8c6ac

View File

@ -22,7 +22,7 @@ import QrCode from '@/components/QrCode';
import SetTime from '@/views/display/demon/setTime';
import { runDiagramIsStart, ranAsPlan, runDiagramOver, runDiagramGetTime } from '@/api/simulation';
import { exitFullscreen } from '@/utils/screen';
import { putJointTrainingSimulationUserNew} from "@/api/jointTraining";
import { putJointTrainingSimulationUserNew} from '@/api/jointTraining';
import { timeFormat } from '@/utils/date';
import { EventBus } from '@/scripts/event-bus';
import { getSessionStorage } from '@/utils/auth';
@ -127,14 +127,14 @@ export default {
methods: {
async initLoadPage() {
try {
const resp = await runDiagramIsStart(this.group);
if (resp && resp.data) {
this.isDisable = true;
this.$store.dispatch('training/simulationStart');
} else {
this.isDisable = false;
this.$store.dispatch('training/over');
}
// const resp = await runDiagramIsStart(this.group);
// if (resp && resp.data) {
// this.isDisable = true;
// this.$store.dispatch('training/simulationStart');
// } else {
// this.isDisable = false;
// this.$store.dispatch('training/over');
// }
} catch (error) {
console.log(error);