1
2
3
4
5
6
7
8
9
10
11
12
13
| import { computed } from 'vue';
| import type { ChatRoomItem } from '../layout/component/sidebar/waterLeftAside/types';
| import { Local } from '../utils/storage';
|
| export const chatRoomList = computed<ChatRoomItem[]>({
| get: () => {
| return Local.get('chatRoomList') ?? [];
| },
| set: (value) => {
| console.log("🚀 ~ value:", value)
| Local.set('chatRoomList', value);
| },
| });
|
|