diff --git a/aurelia_project/tasks/run.js b/aurelia_project/tasks/run.js index baaca561a8b24bbd0c2efa972293b52f6305742c..0e264bdae9eb6fc7d0be3c9b8105002c560703ee 100644 --- a/aurelia_project/tasks/run.js +++ b/aurelia_project/tasks/run.js @@ -33,11 +33,12 @@ let serve = gulp.series( next(); }, proxyMiddleware(['/free', '/admin', '/upload', '/lib'], { - target: 'http://translation.sh1.newtouch.com', + // target: 'http://translation.sh1.newtouch.com', // target: 'http://tms000.sh1.newtouch.com', - // target: 'https://xiweicheng.com', + target: 'https://xiweicheng.com', // target: 'http://localhost', - changeOrigin: true + changeOrigin: true, + secure: false }), ] } diff --git a/src/init/config.js b/src/init/config.js index 2980f14286cfd0563b4d76325f9353b8ef770f92..526e54fcc3892330973c383fc70a366799d50d7b 100644 --- a/src/init/config.js +++ b/src/init/config.js @@ -70,7 +70,7 @@ export class Config { }); if (resp.status == 401) { - toastr.error('用户未登录!'); + toastr.error('用户未登录或者会话超时!'); utils.redirect2Login(); return; } @@ -207,6 +207,7 @@ export class Config { // }); $(document).ajaxError(function(event, xhr, settings) { if (xhr && xhr.status == 401) { + toastr.error('用户未登录或者会话超时!'); utils.redirect2Login(); } }); diff --git a/src/resources/elements/em-blog-left-sidebar.html b/src/resources/elements/em-blog-left-sidebar.html index 695eaac5474e7502232560423e083db72de120a1..7c5bfe3221ab16214618d23de24e5cb7f655e464 100644 --- a/src/resources/elements/em-blog-left-sidebar.html +++ b/src/resources/elements/em-blog-left-sidebar.html @@ -25,6 +25,27 @@ +
+ +
+ + + ${spaceRecent.name} + +
+ +
+
+