| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <%--
- Created by IntelliJ IDEA.
- User: 熊竹
- Date: 2017/3/9
- Time: 9:53
- To change this template use File | Settings | File Templates.
- --%>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <html>
- <head>
- <jsp:include page="head.jsp"/>
- <title>享居屋房源管理系统</title>
- </head>
- <body>
- <jsp:include page="contentBefore.jsp"/>
- <jsp:include page="contentAfter.jsp"/>
- </body>
- <script>
- new Vue({
- el: '#app',
- data: function () {
- return {
- menu: '',
- user: {
- id: '',
- username: 'admin',
- avatar: ''
- }
- };
- },
- methods: {
- logout: function () {
- this.$confirm('确定要注销吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'info'
- }).then(function () {
- localStorage.removeItem('user');
- this.$router.push({path: '/login'});
- }.bind(this))(function (e) {
- });
- }
- }
- })
- </script>
- </html>
|