update 保存增加loading、增加预编译

This commit is contained in:
LiuHao
2024-03-08 14:16:27 +08:00
parent 803d44cac0
commit de33d4aaee
3 changed files with 9 additions and 2 deletions

View File

@ -33,6 +33,7 @@ const open = async (id) => {
//保存模型
const saveCallBack = async (data) => {
await proxy?.$modal.confirm('是否确认保存?');
data.loading.value = true;
modelForm.value.id = modelId.value;
modelForm.value.xml = data.xml;
modelForm.value.svg = data.svg;
@ -45,6 +46,7 @@ const saveCallBack = async (data) => {
emit('closeCallBack', data);
}
});
data.loading.value = false;
};
/**