Files
2021-01-05 16:31:46 +08:00

125 lines
4.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>icon.ico">
<title></title>
<style>
html,
body,
#app {
height: 100%;
margin: 0px;
padding: 0px;
}
.d2-home {
background-color: #303133;
height: 100%;
display: flex;
flex-direction: column;
}
.d2-home__main {
user-select: none;
width: 100%;
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.d2-home__footer {
width: 100%;
flex-grow: 0;
text-align: center;
padding: 1em 0;
}
.d2-home__footer>a {
font-size: 12px;
color: #ABABAB;
text-decoration: none;
}
.d2-home__loading {
height: 32px;
width: 32px;
margin-bottom: 20px;
}
.d2-home__title {
color: #FFF;
font-size: 14px;
margin-bottom: 10px;
}
.d2-home__sub-title {
color: #ABABAB;
font-size: 12px;
}
</style>
<!-- <script>
var _hmt = _hmt || [];
var hmid = "bc38887aa5588add05a38704342ad7e8";
(function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?" + hmid; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
</script> -->
<script src="<%= BASE_URL %>iconfont/iconfont.js"></script>
<script src="<%= process.env.VUE_APP_API %>js/dict/dict.js"></script>
<script>
window.SITE_CONFIG = {};
window.SITE_CONFIG['version'] = '<%= process.env.VUE_APP_VERSION %>'; // 版本
window.SITE_CONFIG['nodeEnv'] = '<%= process.env.VUE_APP_NODE_ENV %>'; // node env
window.SITE_CONFIG['apiURL'] = '<%= process.env.VUE_APP_API %>'; // api请求地址
window.SITE_CONFIG['storeState'] = {}; // vuex本地储存初始化状态(用于不刷新页面的情况下,也能重置初始化项目中所有状态)
window.SITE_CONFIG['contentTabDefault'] = { // 内容标签页默认属性对象
'name': '', // 名称, 由 this.$route.name 自动赋值(默认,名称 === 路由名称 === 路由路径)
'params': {}, // 参数, 由 this.$route.params 自动赋值
'query': {}, // 查询参数, 由 this.$route.query 自动赋值
'menuId': '', // 菜单id(用于选中侧边栏菜单,与this.$store.state.sidebarMenuActiveName进行匹配)
'title': '', // 标题
'isTab': true, // 是否通过tab展示内容?
'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配)
};
window.SITE_CONFIG['menuList'] = []; // 左侧菜单列表(后台返回,未做处理)
window.SITE_CONFIG['permissions'] = []; // 页面按钮操作权限(后台返回,未做处理)
window.SITE_CONFIG['dynamicRoutes'] = []; // 动态路由列表
window.SITE_CONFIG['dynamicMenuRoutes'] = []; // 动态(菜单)路由列表
window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] = false; // 动态(菜单)路由是否已经添加的状态标示(用于判断是否需要重新拉取数据并进行动态添加操作)
</script>
</head>
<body>
<noscript>
<strong>
<!-- 很抱歉,如果没有 JavaScript 支持,D2Admin 将不能正常工作。请启用浏览器的 JavaScript 然后继续。 -->
Sorry, d2admin will not work properly without JavaScript support. Please enable JavaScript for your browser before continuing.
</strong>
</noscript>
<div id="app">
<div class="d2-home">
<div class="d2-home__main">
<img class="d2-home__loading" src="./image/loading/loading-spin.svg" alt="loading">
<div class="d2-home__title">
<!-- 正在加载资源 -->
Loading
</div>
<div class="d2-home__sub-title">
<!-- 初次加载资源可能需要较多时间 请耐心等待 -->
It may take more time to load resources for the first time. Please wait patiently
</div>
</div>
<!-- <div class="d2-home__footer">-->
<!-- <a href="https://github.com/d2-projects/d2-admin" target="_blank">-->
<!-- https://github.com/d2-projects/d2-admin-->
<!-- </a>-->
<!-- </div>-->
</div>
</div>
</body>
</html>