From 566205958121015472291fd8f9212ce90d4d1f5b Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Sun, 1 Dec 2024 17:35:09 +0800 Subject: [PATCH] fix: mis delete userName: string; --- src/services/WikiStorageService/index.ts | 1 - src/store/config.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/WikiStorageService/index.ts b/src/services/WikiStorageService/index.ts index fac8f83..88ed9c2 100644 --- a/src/services/WikiStorageService/index.ts +++ b/src/services/WikiStorageService/index.ts @@ -26,7 +26,6 @@ import { getFullSaveTiddlers } from './ignoredTiddler'; export class WikiStorageService { readonly #workspace: IWikiWorkspace; readonly #configStore = useConfigStore; - readonly #serverStore = useServerStore; constructor(workspace: IWikiWorkspace) { this.#workspace = workspace; diff --git a/src/store/config.ts b/src/store/config.ts index 0f819bc..6fa2af7 100644 --- a/src/store/config.ts +++ b/src/store/config.ts @@ -19,6 +19,7 @@ export interface ConfigState { tagForSharedContent?: string; theme: ColorSchemeName | 'default'; translucentStatusBar?: boolean; + userName: string; } const defaultConfig: ConfigState = { autoOpenDefaultWiki: undefined, @@ -32,6 +33,7 @@ const defaultConfig: ConfigState = { theme: 'default', translucentStatusBar: true, tagForSharedContent: undefined, + userName: '', }; interface ConfigActions { set: (newConfig: Partial) => void;