chore: Remove some error prints (#11864)

This commit is contained in:
ssongliu
2026-02-11 03:45:07 +00:00
committed by GitHub
parent f9547752f5
commit 4bedddb557
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -457,7 +457,7 @@ import {
getDashboardCache,
setDashboardCache,
} from '@/utils/dashboardCache';
import { MsgError, MsgSuccess } from '@/utils/message';
import { MsgSuccess } from '@/utils/message';
const router = useRouter();
const globalStore = GlobalStore();
@@ -843,7 +843,6 @@ const loadMemo = async () => {
const res = await getMemo();
memoContent.value = res.data || '';
} catch (error) {
MsgError(error.message);
memoContent.value = '';
}
};
@@ -866,7 +865,6 @@ const updateDashboardCarouselSetting = async (key: string, value: 'Enable' | 'Di
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
} catch (error) {
target.value = previous;
MsgError(error.message);
}
};
@@ -887,8 +885,6 @@ const saveMemo = async () => {
memoContent.value = memoEditContent.value;
memoEditing.value = false;
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
} catch (error) {
MsgError(error.message);
} finally {
memoSaving.value = false;
}
@@ -27,7 +27,7 @@ import LoadBalanceForm from '@/views/website/website/config/basic/load-balance/f
import { getWebsite, updateWebsiteStream } from '@/api/modules/website';
import { ref, onMounted } from 'vue';
import { Rules } from '@/global/form-rules';
import { MsgError, MsgSuccess } from '@/utils/message';
import { MsgSuccess } from '@/utils/message';
import i18n from '@/lang';
const props = defineProps({
@@ -57,10 +57,6 @@ const submit = async () => {
if (!lbValid) return;
await updateWebsiteStream(form.value);
MsgSuccess(i18n.global.t('commons.msg.updateSuccess'));
} catch (error) {
if (error.message != '') {
MsgError(error.message);
}
} finally {
loading.value = false;
}