fix(store): 立即激活Pinia实例以解决APP端白屏问题
在app.use(store)之前调用store时确保Pinia实例已激活,避免白屏问题
This commit is contained in:
@@ -10,6 +10,7 @@ store.use(
|
||||
},
|
||||
}),
|
||||
)
|
||||
// 立即激活 Pinia 实例, 这样即使在 app.use(store)之前调用 store 也能正常工作 (解决APP端白屏问题)
|
||||
setActivePinia(store)
|
||||
|
||||
export default store
|
||||
|
||||
Reference in New Issue
Block a user