删除部分图片,增加超级会员页面功能
This commit is contained in:
17
store/chat.js
Normal file
17
store/chat.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineStore } from "pinia";
|
||||
// import * as shopApi from "@/http/api/shop.js";
|
||||
|
||||
// 聊天
|
||||
export const useChatStore = defineStore("chat", {
|
||||
state: () => {
|
||||
return {
|
||||
chatList: [],
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
sendMessage(message) {
|
||||
this.chatList.push(message);
|
||||
},
|
||||
},
|
||||
unistorage: true, // 开启后对 state 的数据读写都将持久化
|
||||
});
|
||||
Reference in New Issue
Block a user