代码问题调整
This commit is contained in:
parent
4c5d0f39d6
commit
7cd36b7446
@ -1,10 +1,10 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { getBaseUrl } from '@/utils/baseUrl'
|
import { getBaseUrl } from '@/utils/baseUrl';
|
||||||
|
|
||||||
// 创建或者打开数据库
|
// 创建或者打开数据库
|
||||||
export function openIndexedDB() {
|
export function openIndexedDB() {
|
||||||
const baseUrl = getBaseUrl();
|
const baseUrl = getBaseUrl();
|
||||||
const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, "$1");
|
const indexedDBName = baseUrl.replace(/http.?:\/\/(.*)[\/|:].*/, '$1');
|
||||||
const request = window.indexedDB.open(indexedDBName, 1);
|
const request = window.indexedDB.open(indexedDBName, 1);
|
||||||
request.onerror = function (event) {
|
request.onerror = function (event) {
|
||||||
console.log('数据库打开报错');
|
console.log('数据库打开报错');
|
||||||
|
@ -54,6 +54,7 @@ import StatusIcon from '@/views/components/StatusIcon/statusIcon';
|
|||||||
import { simulationPause, simulationStart } from '../../../api/rtSimulation';
|
import { simulationPause, simulationStart } from '../../../api/rtSimulation';
|
||||||
// import Vue from 'vue';
|
// import Vue from 'vue';
|
||||||
import { getSessionStorage } from '@/utils/auth';
|
import { getSessionStorage } from '@/utils/auth';
|
||||||
|
import { destroySimulation } from '@/api/rtSimulation';
|
||||||
// import { EventBus } from '@/scripts/event-bus';
|
// import { EventBus } from '@/scripts/event-bus';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -249,7 +250,7 @@ export default {
|
|||||||
async back() {
|
async back() {
|
||||||
this.isGoback = true;
|
this.isGoback = true;
|
||||||
if (this.projectDevice || this.project === 'wjls') {
|
if (this.projectDevice || this.project === 'wjls') {
|
||||||
clearSimulation(this.group).then(res=>{
|
destroySimulation(this.group).then(res=>{
|
||||||
this.$store.dispatch('training/over').then(() => {
|
this.$store.dispatch('training/over').then(() => {
|
||||||
this.$store.dispatch('LogOut').then(() => {
|
this.$store.dispatch('LogOut').then(() => {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
@ -378,6 +378,8 @@ export default {
|
|||||||
message = message + ( index ? '、' : '' ) + '《' + item.name + '》';
|
message = message + ( index ? '、' : '' ) + '《' + item.name + '》';
|
||||||
});
|
});
|
||||||
this.$messageBox(message);
|
this.$messageBox(message);
|
||||||
|
} else {
|
||||||
|
this.$message.success('一键校验地图数据通过!');
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user