From 6bf51a5315bf33a5a7997bdef987559bd2998a40 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 10:47:15 +0800
Subject: [PATCH] 10.10

---
 src/store/index.js |   43 +++----------------------------------------
 1 files changed, 3 insertions(+), 40 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index e4f4f7d..e5f0301 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,42 +1,5 @@
-import Vue from 'vue'
-import Vuex from 'vuex'
-import cloneDeep from 'lodash/cloneDeep'
-import common from './modules/common'
-import user from './modules/user'
-import prod from './modules/prod'
+import { createPinia } from "pinia";
 
+const pinia = createPinia()
 
-import talks from './modules/talk'
-import notify from './modules/notify'
-import settings from './modules/settings'
-import emoticon from './modules/emoticon'
-import dialogue from './modules/dialogue'
-import note from './modules/note'
-
-Vue.use(Vuex)
-
-export default new Vuex.Store({
-  modules: {
-    common,
-    user,
-    prod,
-
-    notify,
-    talks,
-    settings,
-    emoticon,
-    dialogue,
-    note,
-  },
-  mutations: {
-    // 重置vuex本地储存状态
-    resetStore (state) {
-      if(this.common){
-        Object.keys(state).forEach((key) => {
-          state[key] = cloneDeep(process.env.VUE_APP_RESOURCES_URL['storeState'][key])
-        })
-      }
-    }
-  },
-  strict: process.env.NODE_ENV !== 'production'
-})
+export default pinia
\ No newline at end of file

--
Gitblit v1.9.3