Skip to content

Commit b3b8724

Browse files
committed
优化页面加载
1 parent b23c79a commit b3b8724

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Vol.Vue/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<title>vol-vue</title>
1111
<style type="text/css">
1212
#loading-container {
13-
position: fixed;
13+
position: absolute;
1414
left: 0;
1515
top: 0;
1616
height: 100%;
1717
width: 100%;
1818
background: #fff;
1919
user-select: none;
20-
z-index: 9999;
20+
z-index: 999999;
2121
overflow: hidden
2222
}
2323

@@ -119,8 +119,6 @@
119119
</div>
120120
</div>
121121
<div id="app"></div>
122-
<!-- built files will be auto injected -->
123-
<div id="loading-container" style="position: unset !important;"></div>
124122
</body>
125123

126124
</html>

Vol.Vue/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
document.getElementById("loading-container").style.display = "none";
1616
}
1717
};
18-
</script>
18+
</script>
1919

2020
<style>
2121
.el-loading {

开发版dev/Vue.NetCore/Vol.Vue/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<title>vol-vue</title>
1111
<style type="text/css">
1212
#loading-container {
13-
position: fixed;
13+
position: absolute;
1414
left: 0;
1515
top: 0;
1616
height: 100%;
1717
width: 100%;
1818
background: #fff;
1919
user-select: none;
20-
z-index: 9999;
20+
z-index: 999999;
2121
overflow: hidden
2222
}
2323

@@ -119,8 +119,6 @@
119119
</div>
120120
</div>
121121
<div id="app"></div>
122-
<!-- built files will be auto injected -->
123-
<div id="loading-container" style="position: unset !important;"></div>
124122
</body>
125123

126124
</html>

0 commit comments

Comments
 (0)