mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-30 23:49:10 +08:00
fix: 解决文件保存失败一直处于加载中的问题 (#4418)
This commit is contained in:
parent
f1ed051135
commit
62828c464e
@ -197,14 +197,18 @@ const quickSave = () => {
|
||||
|
||||
const saveContent = (closePage: boolean) => {
|
||||
loading.value = true;
|
||||
SaveFileContent(form.value).then(() => {
|
||||
loading.value = false;
|
||||
open.value = !closePage;
|
||||
MsgSuccess(i18n.global.t('commons.msg.updateSuccess'));
|
||||
if (closePage) {
|
||||
handleClose();
|
||||
}
|
||||
});
|
||||
SaveFileContent(form.value)
|
||||
.then(() => {
|
||||
loading.value = false;
|
||||
open.value = !closePage;
|
||||
MsgSuccess(i18n.global.t('commons.msg.updateSuccess'));
|
||||
if (closePage) {
|
||||
handleClose();
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
loading.value = false;
|
||||
});
|
||||
};
|
||||
|
||||
const acceptParams = (props: EditProps) => {
|
||||
|
Loading…
Reference in New Issue
Block a user