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({ return request({
url: `/tenant/init/initData/${tenantId}`, url: `/tenant/init/initData/${tenantId}`,
method: "POST", method: "POST",
timeout: 1000 * 60, timeout: 0,
}); });
} }

View File

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