登录过期不显示获取子系统信息失败

This commit is contained in:
fan 2019-10-25 13:16:07 +08:00
parent 2e49c6499f
commit ca736a93f3
4 changed files with 6 additions and 5 deletions

View File

@ -28,7 +28,6 @@
import { getGoodsTryUse } from '@/api/management/goods';
import { PermissionType } from '@/scripts/ConstDic';
import { launchFullscreen } from '@/utils/screen';
import { queryPermissionSimulation } from '@/api/management/author';
import { postCreateRoom, getjointTraining, checkRoomExist } from '@/api/chat';
import { UrlConfig } from '@/router/index';
import { simulationNotify, schedulingNotify } from '@/api/simulation';

View File

@ -48,7 +48,7 @@ export default {
};
},
watch: {
$route(newVal) {
'$route.params.subSystem': function(newVal) {
this.loadInitPage();
}
},

View File

@ -48,7 +48,7 @@ export default {
};
},
watch: {
$route(newVal) {
'$route.params.subSystem': function(newVal) {
this.loadInitPage();
}
},

View File

@ -142,8 +142,10 @@ export default {
// this.$router.push({ path: `${UrlConfig.trainingPlatform.runPlan}/${this.mapId}`, query: {skinCode: '02'} });
// break;
}
}).catch(() => {
this.$messageBox(this.$t('systemGenerate.getSubSystemInfoFail'));
}).catch((error) => {
if (error.code === '40004') {
this.$messageBox(this.$t('systemGenerate.getSubSystemInfoFail'));
}
});
}
},