mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-22 17:39:02 +00:00
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { STORAGE_INIT_MESSAGE_KET } from '@/utils';
|
|
|
|
export function getInitMessage() {
|
|
const value = localStorage.getItem(STORAGE_INIT_MESSAGE_KET) ?? '';
|
|
try {
|
|
const initData = JSON.parse(value) as { id: string; message: string };
|
|
return initData;
|
|
} catch (e) {
|
|
return null;
|
|
}
|
|
}
|