Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-26 19:34:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3fe56b79ca5a6dd867ad2230a2c70bb9dd611086
3fe56b79
1 parent
a14570e1
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
src/store/index.js
src/utils/generateIcons.js
src/store/index.js
View file @
3fe56b7
...
...
@@ -57,7 +57,9 @@ export const mainStore = defineStore('main', {
const
page
=
$router
.
currentRoute
.
value
.
meta
.
name
;
this
.
keepPages
.
push
(
page
);
},
removeThisPage
(
page
)
{
// 删除缓存页
removeThisPage
()
{
// 删除缓存页
const
$router
=
useRouter
();
const
page
=
$router
.
currentRoute
.
value
.
meta
.
name
;
_
.
remove
(
this
.
keepPages
,
item
=>
item
===
page
)
}
},
...
...
src/utils/generateIcons.js
View file @
3fe56b7
...
...
@@ -10,6 +10,7 @@ import icon_dianzan2 from '@images/icon-dianzan02@2x.png'
import
icon_shoucang1
from
'@images/icon-shoucang01@2x.png'
import
icon_shoucang2
from
'@images/icon-shoucang02@2x.png'
import
icon_liuyan
from
'@images/icon-liuyan@2x.png'
import
icon_book
from
'@images/shu@2x.png'
export
{
icon_video
,
...
...
@@ -24,4 +25,5 @@ export {
icon_liuyan
,
icon_shoucang1
,
icon_shoucang2
,
icon_book
,
}
...
...
Please
register
or
login
to post a comment