feat: optimize chat page data list style, support list style and chat style

This commit is contained in:
RockYang
2024-06-28 15:53:49 +08:00
parent 6998dd7af4
commit a692cf1338
12 changed files with 696 additions and 261 deletions

View File

@@ -1,13 +1,19 @@
import {defineStore} from 'pinia';
import Storage from 'good-storage'
export const useSharedStore = defineStore('shared', {
state: () => ({
showLoginDialog: false
showLoginDialog: false,
chatListStyle: Storage.get("chat_list_style","chat")
}),
getters: {},
actions: {
setShowLoginDialog(value) {
this.showLoginDialog = value;
},
setChatListStyle(value) {
this.chatListStyle = value;
Storage.set("chat_list_style", value);
}
}
});