Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
733afddd
Commit
733afddd
authored
Jan 27, 2021
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(nprocess): remove nprocess css
parent
b107b528
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
10 deletions
+22
-10
index.less
src/design/index.less
+0
-6
public.less
src/design/public.less
+18
-0
progressGuard.ts
src/router/guard/progressGuard.ts
+4
-4
No files found.
src/design/index.less
View file @
733afddd
...
...
@@ -52,12 +52,6 @@ body {
}
}
// remove the clear button of a text input control in IE10+
input::-ms-clear,
input::-ms-reveal {
display: none;
}
body {
font-family: 'BlinkMacSystemFont,segoe ui,Microsoft YaHei,Arial,sans-serif,Helvetica Neue,Helvetica,Pingfang SC,Hiragino Sans GB,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji';
font-style: normal;
...
...
src/design/public.less
View file @
733afddd
...
...
@@ -24,3 +24,21 @@
::-webkit-scrollbar-thumb:hover {
background: @border-color-dark;
}
// =================================
// ==============nprogress==========
// =================================
#nprogress {
pointer-events: none;
.bar {
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
height: 2px;
background-color: @primary-color;
opacity: 0.75;
}
}
src/router/guard/progressGuard.ts
View file @
733afddd
...
...
@@ -2,8 +2,8 @@ import type { Router } from 'vue-router';
import
{
useTransitionSetting
}
from
'
/@/hooks/setting/useTransitionSetting
'
;
import
N
Progress
from
'
nprogress
'
;
import
'
nprogress/nprogress.css
'
;
import
n
Progress
from
'
nprogress
'
;
import
{
unref
}
from
'
vue
'
;
const
{
getOpenNProgress
}
=
useTransitionSetting
();
...
...
@@ -11,13 +11,13 @@ const { getOpenNProgress } = useTransitionSetting();
export
function
createProgressGuard
(
router
:
Router
)
{
router
.
beforeEach
(
async
(
to
)
=>
{
if
(
to
.
meta
.
loaded
)
return
true
;
unref
(
getOpenNProgress
)
&&
N
Progress
.
start
();
unref
(
getOpenNProgress
)
&&
n
Progress
.
start
();
return
true
;
});
router
.
afterEach
(
async
(
to
)
=>
{
if
(
to
.
meta
.
loaded
)
return
true
;
unref
(
getOpenNProgress
)
&&
N
Progress
.
done
();
unref
(
getOpenNProgress
)
&&
n
Progress
.
done
();
return
true
;
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment