代码调整

This commit is contained in:
joylink_cuiweidong 2020-05-12 10:51:17 +08:00
parent fb17b72e5e
commit 27a54d5842
2 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,7 @@ export function loadDraftScript(scriptId, memberId, group) {
} }
/** 剧本预览选择角色 */ /** 剧本预览选择角色 */
export function loadDraftScriptNew(scriptId, memberId, group) { export function loadDraftScriptNew(memberId, group) {
return request({ return request({
url: `/simulation/${group}/${memberId}`, url: `/simulation/${group}/${memberId}`,
method: 'put' method: 'put'

View File

@ -65,7 +65,7 @@ import { checkLoginLine } from '@/api/login';
import { loadNewMapDataByGroup } from '@/utils/loaddata'; import { loadNewMapDataByGroup } from '@/utils/loaddata';
import { EventBus } from '@/scripts/event-bus'; import { EventBus } from '@/scripts/event-bus';
import Vue from 'vue'; import Vue from 'vue';
import {loadDraftScript} from '@/api/designPlatform'; import {loadDraftScript, loadDraftScriptNew} from '@/api/designPlatform';
// //
// import Jl3dSimulation from '@/views/jlmap3d/simulation/jl3dsimulation'; // import Jl3dSimulation from '@/views/jlmap3d/simulation/jl3dsimulation';
@ -389,7 +389,8 @@ export default {
} }
} }
this.switchMode(prdType); this.switchMode(prdType);
const res = await loadDraftScript(row.id, id, this.group); debugger;
const res = this.$route.query.drawWay ? await loadDraftScriptNew(id, this.group) : await loadDraftScript(row.id, id, this.group);
if (res && res.code == 200) { if (res && res.code == 200) {
this.questId = parseInt(row.id); this.questId = parseInt(row.id);
if (mapLocation) { if (mapLocation) {