Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Lucky高
vue-vben-admin
提交
733afddd
V
vue-vben-admin
项目概览
Lucky高
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
733afddd
编写于
1月 27, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf(nprocess): remove nprocess css
上级
b107b528
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
22 addition
and
10 deletion
+22
-10
src/design/index.less
src/design/index.less
+0
-6
src/design/public.less
src/design/public.less
+18
-0
src/router/guard/progressGuard.ts
src/router/guard/progressGuard.ts
+4
-4
未找到文件。
src/design/index.less
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
;
});
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录