mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 16:27:33 +00:00
refactor
This commit is contained in:
parent
6106436086
commit
65b6e7f6a8
@ -21,12 +21,11 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="label">{{ t("minDuration") }} (ms)</div>
|
<div class="label">{{ t("minDuration") }} (ms)</div>
|
||||||
<el-input
|
<el-input-number
|
||||||
size="small"
|
size="small"
|
||||||
class="profile-input"
|
class="profile-input"
|
||||||
:min="0"
|
:min="0"
|
||||||
v-model="states.minDuration"
|
v-model="states.minDuration"
|
||||||
type="number"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -78,15 +77,11 @@ function changeConfig(params: { [key: string]: number | string }) {
|
|||||||
(states as any)[key] = params[key];
|
(states as any)[key] = params[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createTask() {
|
function createTask() {
|
||||||
const when4xx =
|
|
||||||
states.when4xx === InitTaskField.Whenxx[0].value ? true : false;
|
|
||||||
const when5xx =
|
|
||||||
states.when5xx === InitTaskField.Whenxx[0].value ? true : false;
|
|
||||||
emits("create", {
|
emits("create", {
|
||||||
uriRegex: states.uriRegex || undefined,
|
uriRegex: states.uriRegex || undefined,
|
||||||
when4xx,
|
when4xx: states.when4xx === InitTaskField.Whenxx[0].value ? true : false,
|
||||||
when5xx,
|
when5xx: states.when5xx === InitTaskField.Whenxx[0].value ? true : false,
|
||||||
minDuration: isNaN(states.minDuration) ? undefined : states.minDuration,
|
minDuration: isNaN(states.minDuration) ? undefined : states.minDuration,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user