修复前端界面出现Whitelabel Error Page问题。采用本地static库,加载js和css文件

master
Miku 1 year ago
parent 3e5c003f60
commit e1086d0a22

@ -0,0 +1,20 @@
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 定义时间戳 -->
<div th:fragment="foot(script)" th:with="time=20200429">
<!---jquery--->
<script th:if="${#strings.contains(script,'jquery')}"
type="text/javascript" th:src="@{/lib/common/jquery.js}"></script>
<!---tree--->
<script th:if="${#strings.contains(script,'tree')}"
type="text/javascript" th:src="@{/lib/ztree/jquery.ztree.all.min.js}"></script>
<script th:if="${#strings.contains(script,'weixin')}"
src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script th:if="${#strings.contains(script,'currencyFormatter')}"
th:src="@{/js/currencyFormatter.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/lib/vue/vue.min.js}" ></script>
<script type="text/javascript" th:src="@{/lib/iview/iview.min.js}"></script>
</div>
</html>

@ -0,0 +1,30 @@
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(link)">
<title></title>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" th:href="@{/images/favicon.ico}" type="image/x-icon"/>
<meta name="author" th:content="zjl" />
<meta name="site" content="https://blog.52itstyle.vip" />
<link rel="stylesheet" th:href="@{/css/oksub.css}">
<link rel="stylesheet" th:href="@{/lib/iview/styles/iview.css}">
<!---tree--->
<link th:if="${#strings.contains(link,'tree')}"
rel="stylesheet" th:href="@{/lib/ztree/css/metroStyle/metroStyle.css}">
<!---awesome--->
<link th:if="${#strings.contains(link,'awesome')}"
rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
<style type="text/css">
[v-cloak] {
display: none;
}
.ivu-input-number{
width: 150px;
}
</style>
</head>
</html>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save