Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
429ed263
authored
2024-12-26 13:03:29 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pinia配置
1 parent
2549571b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
package.json
src/main.ts
package.json
View file @
429ed26
...
...
@@ -40,6 +40,7 @@
"path-browserify"
:
"^1.0.1"
,
"path-to-regexp"
:
"^6.2.1"
,
"pinia"
:
"^2.0.35"
,
"pinia-plugin-persistedstate"
:
"^2.2.0"
,
"pinyin-pro"
:
"^3.24.2"
,
"qs"
:
"^6.11.1"
,
"sortablejs"
:
"^1.15.1"
,
...
...
src/main.ts
View file @
429ed26
...
...
@@ -3,12 +3,16 @@ import './utils/baidu'
import
'./utils/system.copyright'
import
ElementPlus
from
'element-plus'
import
App
from
'./App.vue'
import
pinia
from
'./store'
//
import pinia from './store'
import
router
from
'./router'
import
useSettingsStore
from
'./store/modules/settings'
;
import
{
ElMessage
}
from
"element-plus"
import
{
openMessageBox
}
from
"@/utils/common"
// pinia设置
import
{
createPinia
}
from
'pinia'
import
piniaPluginPersistedstate
from
'pinia-plugin-persistedstate'
// 自定义指令
import
directive
from
'@/utils/directive'
...
...
@@ -21,6 +25,9 @@ import '@/assets/styles/globals.scss'
// 加载 iconify 图标(element plus)
import
{
downloadAndInstall
}
from
'@/iconify-ep'
const
pinia
=
createPinia
();
pinia
.
use
(
piniaPluginPersistedstate
);
const
app
=
createApp
(
App
)
app
.
use
(
ElementPlus
)
app
.
use
(
pinia
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment