This commit is contained in:
parent
7694ad47a7
commit
ceb69f9f45
|
|
@ -1,11 +1,7 @@
|
|||
import { createPinia } from "pinia"
|
||||
import { createPinia, PiniaVuePlugin } from "pinia"
|
||||
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||
|
||||
const pinia = createPinia()
|
||||
pinia.use(piniaPluginPersistedstate)
|
||||
// 控制台日志关闭
|
||||
;(pinia as any)._p = (pinia as any)._p.filter(
|
||||
(p: any) => p.name !== "pinia:devtools"
|
||||
)
|
||||
|
||||
export default pinia
|
||||
|
|
|
|||
Loading…
Reference in New Issue