UNPKG
@neosjs/cli
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
Neos(奈欧斯)是一个帮助开发者快速地创建 Vue3 应用并自动配置项目编译的脚手架
docs.neosjs.com/cli/
@neosjs/cli
/
lib
/
create
/
template
/
config
/
pinia
/
src
/
stores
/
index.ts
8 lines
(7 loc)
•
281 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
type
{
App
}
from
'vue'
import
{ createPinia }
from
'pinia'
import
piniaPluginPersistedstate
from
'pinia-plugin-persistedstate'
const
store =
createPinia
() store.
use
(piniaPluginPersistedstate)
export
const
setupStore
= (
app
:
App
<
Element
>
) => app.
use
(store)
export
{ store }