增加loading;修改部分css

This commit is contained in:
LiYang
2016-07-31 22:40:52 +08:00
parent bcee7bca67
commit 0d5318b3e1
6 changed files with 583 additions and 9 deletions

View File

@@ -1,11 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8">
<title>Online Judge Admin</title>
</head>
<body>
<div id="app">
</div>
</body>
</head>
<body>
<div class="cssload-battery">
<div class="cssload-liquid"></div>
</div>
<div id="app">
</div>
</body>
</html>

View File

@@ -20,6 +20,7 @@
"babel-preset-es2015": "^6.0.0",
"babel-preset-stage-2": "^6.0.0",
"babel-register": "^6.0.0",
"codemirror": "^5.17.0",
"connect-history-api-fallback": "^1.1.0",
"css-loader": "^0.23.0",
"eventsource-polyfill": "^0.9.6",
@@ -42,6 +43,7 @@
"vue-resource": "^0.9.3",
"vue-router": "^0.7.13",
"vue-style-loader": "^1.0.0",
"vue-tagsinput": "^0.3.1",
"webpack": "^1.12.2",
"webpack-dev-middleware": "^1.4.0",
"webpack-hot-middleware": "^2.6.0",

View File

@@ -22,8 +22,10 @@
</template>
<style>
@import "../../static/css/loading.css";
@import "../../static/css/bootstrap.css";
@import "../../static/css/todc-bootstrap.css";
</style>
<script>

View File

@@ -92,5 +92,8 @@ router.map({
}
});
document.getElementsByClassName("cssload-battery")[0].style.display = "none";
router.redirect({"/user": "/user/1"});
router.start(App, '#app');
router.start(App, '#app');