diff --git a/packages/playground/src/components/manage_worker_dialog.vue b/packages/playground/src/components/manage_worker_dialog.vue
index 68c631c096..9ac22b1128 100644
--- a/packages/playground/src/components/manage_worker_dialog.vue
+++ b/packages/playground/src/components/manage_worker_dialog.vue
@@ -19,11 +19,13 @@
-
-
-
+
+
+
+
+
-
+
Close
Delete
-
+ $emit('deploy', layout), false)"
+ v-if="showType === 1"
+ >
Deploy
@@ -74,7 +80,6 @@ const emits = defineEmits<{
const layout = ref();
const showType = ref(props.workers.length === 0 ? 1 : 0);
-const valid = ref(true);
const deletingDialog = ref(false);
function onDelete() {
diff --git a/packages/playground/src/components/weblet_layout.vue b/packages/playground/src/components/weblet_layout.vue
index 3c8e54e828..5ce91386f6 100644
--- a/packages/playground/src/components/weblet_layout.vue
+++ b/packages/playground/src/components/weblet_layout.vue
@@ -196,7 +196,7 @@ provideService({
},
});
-function validateBeforeDeploy(fn: () => void) {
+function validateBeforeDeploy(fn: () => void, documentScrollend = true) {
const forms = __forms;
let errorInput: [number, any, boolean] | null = null;
@@ -243,7 +243,8 @@ function validateBeforeDeploy(fn: () => void) {
return;
}
- document.addEventListener("scrollend", _improveUx, { once: true });
+ documentScrollend && document.addEventListener("scrollend", _improveUx, { once: true });
+ !documentScrollend && setTimeout(_improveUx, 500);
_input.scrollIntoView({ behavior: "smooth", block: "center" });
async function _improveUx() {