代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>大事件1002首页</title>
<link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
<link rel="stylesheet" href="/assets/css/index.css">
<!-- 判断是否有token -->
<script>
if(localStorage.getItem('token') === null){
localStorage.href = '/login.html';
}
</script>
</head>
<body>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
<!-- 头部区域(可配合layui已有的水平导航) -->
<div class="layui-header">
<div class="layui-logo">
<img src="/assets/images/logo.png" alt="">
</div>
<!-- 给ul加lay-shrink ="all"点击本菜单收缩全部兄弟菜单子菜单 -->
<ul class="layui-nav layui-layout-right " lay-shrink="all">
<li class="layui-nav-item">
<div class="userinfo">
<span class="avatar"></span>
<img src="" class="layui-nav-img">
个人中心
</div>
<dl class="layui-nav-child">
<dd><a href="/user/userinfo.html" target="fm">基本资料</a></dd>
<dd><a href="/user/avatar.html" target="fm">更换头像</a></dd>
<dd><a href="/user/repwd.html" target="fm">重置密码</a></dd>
</dl>
</li>
<li class="layui-nav-item"><a href="javascript:;" id="logout"><span class="iconfont"></span>退出</a></li>
</ul>
</div>
<div class="layui-side layui-bg-black">
<div class="layui-side-scroll">
<div class="userinfo">
<span class="avatar"></span>
<img src="" class="layui-nav-img">
欢迎你<span class="username" style="word-break:normal; "></span>
</div>
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
<ul class="layui-nav layui-nav-tree" lay-filter="test" lay-shrink="all">
<!-- 首页 -->
<li class="layui-nav-item layui-this"><a href=""><span class="iconfont"></span>首页</a></li>
<!-- 折叠效果手风琴 -->
<!-- 文章管理区域 -->
<li class="layui-nav-item">
<a class="" href="javascript:;"><span class="iconfont"></span>文章管理</a>
<dl class="layui-nav-child">
<dd><a href="/article/category.html" target="fm"><i class="layui-icon layui-icon-app" style="font-size: 15px;margin:0 10px; "></i>文章类别</a></dd>
<dd><a href="/article/article.html" target="fm"><i class="layui-icon layui-icon-app" style="font-size: 15px;margin:0 10px; "></i>文章列表</a></dd>
<dd><a href="/article/publish.html" target="fm"><i class="layui-icon layui-icon-app" style="font-size: 15px;margin:0 10px; "></i>发表文章</a></dd>
</dl>
</li>
<!-- 个人中心区域 -->
<li class="layui-nav-item">
<a href="javascript:;"><span class="iconfont"></span>个人中心</a>
<dl class="layui-nav-child">
<dd><a href="/user/userinfo.html" target="fm"><i class="layui-icon layui-icon-app" style="font-size: 15px;margin:0 10px; "></i>基本资料</a></dd>
<dd><a href="/user/avatar.html" target="fm"><i class="layui-icon layui-icon-app" style="font-size: 15px;margin:0 10px; "></i>更换头像</a></dd>
<dd><a href="/user/repwd.html" target="fm"><i class="layui-icon layui-icon-app" style="font-size: 15px;margin:0 10px; "></i>重置密码</a></dd>
</dl>
</li>
</ul>
</div>
</div>
<div class="layui-body">
<!-- 内容主体区域 -->
<!-- <div style="padding: 15px;"></div> -->
<!-- 在本页右侧显示跳转的页面 -->
<!-- <iframe src="引入默认的页面" name="要和上面a链接里的target对应" frameborder="0"></iframe> -->
<iframe src="/home/dashboard.html" name="fm" frameborder="0"></iframe>
</div>
<!-- 底部固定区域 -->
<div class="layui-footer">
© chenazhen.com - 黑马程序员前端111期陈鹤珍
</div>
</div>
<script src="/assets/lib/jquery.js"></script>
<script src="/assets/lib/layui/layui.all.js"></script>
<script src="/assets/js/common.js"></script>
<script src="/assets/js/index.js"></script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。