replace ElMessage with Sonner

This commit is contained in:
pa
2026-01-07 19:16:31 +09:00
committed by Natsumi
parent f819a3f500
commit 7e4de15ef2
85 changed files with 574 additions and 1144 deletions

View File

@@ -1,5 +1,5 @@
import { ElMessage } from 'element-plus';
import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner';
import { THEME_CONFIG } from '../../constants';
import { i18n } from '../../../plugin/i18n';
@@ -327,11 +327,7 @@ async function getThemeMode(configRepository) {
function redirectToToolsTab() {
router.push({ name: 'tools' });
ElMessage({
message: i18n.global.t('view.tools.redirect_message'),
type: 'primary',
duration: 3000
});
toast(i18n.global.t('view.tools.redirect_message'), { duration: 3000 });
}
export {