mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
chore: Remove some error prints (#11864)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user