update
This commit is contained in:
@@ -230,7 +230,7 @@ onMounted(() => {
|
|||||||
cols: 80, // 初始列数
|
cols: 80, // 初始列数
|
||||||
allowTransparency: true,
|
allowTransparency: true,
|
||||||
disableStdin: false,
|
disableStdin: false,
|
||||||
convertEol: false,
|
convertEol: true,
|
||||||
scrollback: getScrollbackValue(terminalScrollbackLimitNumber.value), // Use setting from store
|
scrollback: getScrollbackValue(terminalScrollbackLimitNumber.value), // Use setting from store
|
||||||
scrollOnUserInput: true, // 输入时滚动到底部
|
scrollOnUserInput: true, // 输入时滚动到底部
|
||||||
...props.options, // 合并外部传入的选项
|
...props.options, // 合并外部传入的选项
|
||||||
|
|||||||
@@ -93,10 +93,6 @@ export const useFavoritePathsStore = defineStore('favoritePaths', {
|
|||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this.error = err.message || 'Failed to fetch favorite paths';
|
this.error = err.message || 'Failed to fetch favorite paths';
|
||||||
console.error('Error fetching favorite paths:', err);
|
console.error('Error fetching favorite paths:', err);
|
||||||
notificationsStore.addNotification({
|
|
||||||
message: t('favoritePaths.notifications.fetchError', 'Failed to load favorite paths.'),
|
|
||||||
type: 'error',
|
|
||||||
});
|
|
||||||
this.isInitialized = false; // +++ 如果获取失败,允许重试初始化 +++
|
this.isInitialized = false; // +++ 如果获取失败,允许重试初始化 +++
|
||||||
} finally {
|
} finally {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user