添加index.html和alter_info.html更新LoginUserInfo,和其他页面对main.js的引入
This commit is contained in:
parent
2a90c817b6
commit
8af2993f25
|
@ -161,7 +161,8 @@
|
|||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="dist/js/demo.js"></script>
|
||||
<!-- Custom Scripts -->
|
||||
<script src="include/main.js">
|
||||
<script src="pages/include/main.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$.ajax({
|
||||
type: "get",
|
||||
|
|
|
@ -144,6 +144,8 @@
|
|||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="../dist/js/demo.js"></script>
|
||||
<!-- date select and query -->
|
||||
<!-- Custom Scripts -->
|
||||
<script src="include/main.js"></script>
|
||||
<script>
|
||||
//alert("111");
|
||||
$(document).ready(function(){
|
||||
|
@ -182,6 +184,10 @@
|
|||
200: function(data) {// 请求成功
|
||||
alert("更新成功!");
|
||||
window.location.reload();
|
||||
// alter
|
||||
LoginUserInfo.name=name;
|
||||
LoginUserInfo.email=email;
|
||||
LoginUserInfo.phone=phone;
|
||||
},
|
||||
401:function(){// 未授权
|
||||
alert("未登录!");
|
||||
|
|
|
@ -143,6 +143,8 @@
|
|||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="../dist/js/demo.js"></script>
|
||||
<!-- date select and query -->
|
||||
<!-- Custom Scripts -->
|
||||
<script src="include/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -152,6 +152,8 @@
|
|||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="../dist/js/demo.js"></script>
|
||||
<!-- date select and query -->
|
||||
<!-- Custom Scripts -->
|
||||
<script src="include/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -259,6 +259,8 @@
|
|||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="../dist/js/demo.js"></script>
|
||||
<!-- date select and query -->
|
||||
<!-- Custom Scripts -->
|
||||
<script src="include/main.js"></script>
|
||||
<script>
|
||||
//alert("111");
|
||||
$(document).ready(function(){
|
||||
|
|
|
@ -527,6 +527,8 @@
|
|||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="../dist/js/demo.js"></script>
|
||||
<!-- date select and query -->
|
||||
<!-- Custom Scripts -->
|
||||
<script src="include/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue