mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update workspace service
This commit is contained in:
@ -23,8 +23,7 @@ const SignIn = () => {
|
||||
const workspaceSettingStore = useWorkspaceSettingStore();
|
||||
const userStore = useUserStore();
|
||||
const actionBtnLoadingState = useLoading(false);
|
||||
const { appearance, locale, systemStatus } = globalStore.state;
|
||||
const mode = systemStatus.profile.mode;
|
||||
const { appearance, locale, systemStatus, workspaceProfile } = globalStore.state;
|
||||
const [username, setUsername] = useState("");
|
||||
const [password, setPassword] = useState("");
|
||||
const [remember, setRemember] = useState(true);
|
||||
@ -42,11 +41,11 @@ const SignIn = () => {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (mode === "demo") {
|
||||
if (workspaceProfile.mode === "demo") {
|
||||
setUsername("memos-demo");
|
||||
setPassword("secret");
|
||||
}
|
||||
}, [mode]);
|
||||
}, [workspaceProfile.mode]);
|
||||
|
||||
const handleUsernameInputChanged = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const text = e.target.value as string;
|
||||
|
Reference in New Issue
Block a user