Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
04e2d41d
authored
2022-11-08 15:36:01 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:自定义loading加载文字
1 parent
76d21f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/utils/requestLoading.js
src/utils/requestLoading.js
View file @
04e2d41
// import { Loading } from 'element-ui'
import
Loading
from
'@/components/loading/index.js'
;
// 定义 loading
let
loading
// loading开始 方法
function
startLoading
(
target
=
"body"
)
{
function
startLoading
(
target
=
"body"
,
loadingText
=
'正在加载中...'
)
{
loading
=
Loading
.
service
({
text
:
'正在加载中...'
,
text
:
loadingText
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(255, 255, 255, 0.5)'
,
target
:
'#'
+
target
...
...
Please
register
or
sign in
to post a comment