代码调整
This commit is contained in:
parent
4ab462ed5d
commit
022cf8c6ac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user