wujingjing
2024-06-28 fbd97c44c79368169590a55205482df25650c161
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);
    },
});