服务新建成功提示语+激 活devops后未跳转到引擎配置

This commit is contained in:
caishi 2022-05-26 14:51:48 +08:00
parent e1582102aa
commit dbcf0bb1b9
5 changed files with 23 additions and 5 deletions

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

View File

@ -25,7 +25,7 @@ if (isDev) {
}
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'student'
}
window._debugType = debugType;
export function initAxiosInterceptors(props) {

View File

@ -136,7 +136,7 @@ function About(props, ref) {
params:{password:authorityVal}
}).then(result=>{
setIsSpining(false);
if(result){
if(result && result.data.status === 0){
setStep(result.data.step);
}
}).catch(error=>{setIsSpining(false)});
@ -149,7 +149,10 @@ function About(props, ref) {
axios.post(url).then(result=>{
setIsSpining(false);
if(result && result.data.status === 0){
props.history.push(`/${owner}/${projectsId}/devops`);
props.history.push({
pathname: `/${owner}/${projectsId}/devops`,
state:{open_devops:true}
});
// open_devops
let { changeOpenDevops } = props;
changeOpenDevops && changeOpenDevops(true);

View File

@ -1,4 +1,4 @@
import React , { useEffect } from 'react';
import React from 'react';
import { WhiteBack } from '../Component/layout';
import './ops.scss';

View File

@ -20,7 +20,7 @@ function Data(props){
function onDetectionOk(){
props.showNotification("扫描成功!");
props.showNotification("新建分析成功,可在“检测状态”处查看扫描检测进度");
setDetectionVisible(false);
setSpining(true);
Init();