This commit is contained in:
Baobhan Sith
2025-05-25 22:15:38 +08:00
parent 83989488ca
commit 1790380e9d
2 changed files with 1 additions and 5 deletions
@@ -230,7 +230,7 @@ onMounted(() => {
cols: 80, // 初始列数
allowTransparency: true,
disableStdin: false,
convertEol: false,
convertEol: true,
scrollback: getScrollbackValue(terminalScrollbackLimitNumber.value), // Use setting from store
scrollOnUserInput: true, // 输入时滚动到底部
...props.options, // 合并外部传入的选项
@@ -93,10 +93,6 @@ export const useFavoritePathsStore = defineStore('favoritePaths', {
} catch (err: any) {
this.error = err.message || 'Failed to fetch favorite paths';
console.error('Error fetching favorite paths:', err);
notificationsStore.addNotification({
message: t('favoritePaths.notifications.fetchError', 'Failed to load favorite paths.'),
type: 'error',
});
this.isInitialized = false; // +++ 如果获取失败,允许重试初始化 +++
} finally {
this.isLoading = false;