Commit 7bfdf309 by caoyanzhi

update: 添加loading

parent 51671382
......@@ -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>
......
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();
});
};
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment