feat: 表单编辑器magic-api调用不会弹框,而是以图标闪烁的形式显示

This commit is contained in:
gaoyunqi
2024-03-27 16:42:01 +08:00
parent 46b36b1c92
commit f4adcd3dff
8 changed files with 114 additions and 7 deletions

View File

@ -0,0 +1,20 @@
import { ref } from 'vue';
const isEditorOpen = ref(false);
const hasAjaxError = ref(false);
function ajaxError() {
hasAjaxError.value = true;
setTimeout(() => {
hasAjaxError.value = false;
}, 10000);
}
export default function() {
return {
isEditorOpen,
hasAjaxError,
ajaxError
}
}