|
@@ -41,6 +41,11 @@ module.exports = options => {
|
|
if (this.session === null) {
|
|
if (this.session === null) {
|
|
throw '系统维护中~';
|
|
throw '系统维护中~';
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 对sub_menu项目默认打开页进行配置
|
|
|
|
+ const record = yield this.service.settingShow.getDefaultPath();
|
|
|
|
+ this.curListUrl = record.path;
|
|
|
|
+
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
if (this.helper.isAjax(this.request)) {
|
|
if (this.helper.isAjax(this.request)) {
|
|
@@ -53,22 +58,22 @@ module.exports = options => {
|
|
if (this.helper.isWap(this.request)) {
|
|
if (this.helper.isWap(this.request)) {
|
|
this.session.wapTenderID = this.params.id ? this.params.id : null;
|
|
this.session.wapTenderID = this.params.id ? this.params.id : null;
|
|
return this.redirect('/wap/login?referer=' + this.url);
|
|
return this.redirect('/wap/login?referer=' + this.url);
|
|
- } else {
|
|
|
|
- return this.redirect('/login?referer=' + this.url);
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (this.helper.isWap(this.request)) {
|
|
|
|
- this.session.wapTenderID = this.params.id ? this.params.id : null;
|
|
|
|
- return this.redirect('/wap/login?referer=' + this.url);
|
|
|
|
- } else {
|
|
|
|
- this.session.message = {
|
|
|
|
- type: messageType.ERROR,
|
|
|
|
- icon: 'exclamation-circle',
|
|
|
|
- message: '登录信息异常,请重新登录',
|
|
|
|
- };
|
|
|
|
- return this.redirect('/login?referer=' + this.url);
|
|
|
|
}
|
|
}
|
|
|
|
+ return this.redirect('/login?referer=' + this.url);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if (this.helper.isWap(this.request)) {
|
|
|
|
+ this.session.wapTenderID = this.params.id ? this.params.id : null;
|
|
|
|
+ return this.redirect('/wap/login?referer=' + this.url);
|
|
}
|
|
}
|
|
|
|
+ this.session.message = {
|
|
|
|
+ type: messageType.ERROR,
|
|
|
|
+ icon: 'exclamation-circle',
|
|
|
|
+ message: '登录信息异常,请重新登录',
|
|
|
|
+ };
|
|
|
|
+ return this.redirect('/login?referer=' + this.url);
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
yield next;
|
|
yield next;
|
|
};
|
|
};
|