Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
marketing-web
marketing
Commits
7bfdf309
Commit
7bfdf309
authored
Mar 16, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 添加loading
parent
51671382
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
index.html
index.html
+7
-1
limiting.js
src/utils/limiting.js
+0
-3
No files found.
index.html
View file @
7bfdf309
...
...
@@ -13,7 +13,13 @@
<!-- <link rel="stylesheet" type="text/css" href="http://web-1251519181.file.myqcloud.com/lib/elementUI/theme.1.0.1/index.css"> -->
</head>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
>
<div
class=
"el-loading-spinner"
style=
"width: 98%;"
>
<svg
viewBox=
"25 25 50 50"
class=
"circular"
>
<circle
cx=
"50"
cy=
"50"
r=
"20"
fill=
"none"
class=
"path"
></circle>
</svg>
</div>
</div>
<!-- built files will be auto injected -->
<!-- 组件引用cdn -->
<script>
...
...
src/utils/limiting.js
View file @
7bfdf309
import
{
requests
}
from
'@/service/api/index'
;
import
Vue
from
'vue'
;
import
store
from
'@/store/index'
;
export
default
config
=>
{
const
{
createApp
}
=
config
;
window
.
onload
=
function
()
{
const
fullLoading
=
Vue
.
prototype
.
$loading
({
lock
:
true
});
// 获取用户企业id
const
getUserInfo
=
requests
(
'/api-auth/get-login-user-info'
,
{
requestProject
:
'gic-web'
,
f
:
1
}).
then
(
data
=>
{
const
result
=
data
.
result
||
{};
...
...
@@ -21,7 +19,6 @@ export default config => {
});
Promise
.
all
([
getUserInfo
,
getCouponEnable
]).
finally
(()
=>
{
createApp
();
fullLoading
.
close
();
});
};
};
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