initdata timeout

This commit is contained in:
2023-06-29 14:13:09 +08:00
parent 017c1c1dbe
commit cd4ad39428
2 changed files with 8 additions and 6 deletions

View File

@ -20,6 +20,6 @@ export const initData = (tenantId) => {
return request({
url: `/tenant/init/initData/${tenantId}`,
method: "POST",
timeout: 1000 * 60,
timeout: 0,
});
}

View File

@ -262,11 +262,11 @@ const importData = () => {
onMounted(() => {
watchEffect(() => {
const progressLineWidth =
(activeStep.value - 1) * 100 +
Math.abs(currentStepStatus.value - 1) * 50 +
50;
let progressLineWidth =
((activeStep.value - 1) * 100 +
Math.abs(currentStepStatus.value - 1) * 30 +
70)
progressLineWidth = progressLineWidth < 100 ? 0 : progressLineWidth
let progressLineColor;
if (currentStepStatus.value === 0) {
const percent = ((activeStep.value - 1) / activeStep.value) * 100;
@ -305,6 +305,7 @@ onMounted(() => {
width: var(--progress-line-width);
z-index: 99;
background: var(--progress-line-color);
transition: all 1s linear;
}
.el-step__line::after {
@ -315,6 +316,7 @@ onMounted(() => {
top: -6px;
width: 14px;
height: 14px;
transition: all 1s linear;
border-radius: 50%;
z-index: 99;
background: var(--progress-line-color);