Commit b2958eff authored by 王万里's avatar 王万里

fix: 修改配置文件

parent 887629bb
......@@ -22,8 +22,10 @@ var flowableAdminPathName = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?
var FlowableAdmin = {};
FlowableAdmin.Config = {};
FlowableAdmin.Config.contextRoot = flowableAdminPathName;
FlowableAdmin.Config.adminContextRoot = flowableAdminPathName + "/admin-app/";
// FlowableAdmin.Config.contextRoot = flowableAdminPathName;
FlowableAdmin.Config.contextRoot = "/adminweb";
// FlowableAdmin.Config.adminContextRoot = flowableAdminPathName + "/admin-app/";
FlowableAdmin.Config.adminContextRoot = "/adminweb" + "/admin-app/";
// General settings
FlowableAdmin.Config.alert = {};
......
......@@ -18,16 +18,36 @@
var FLOWABLE = FLOWABLE || {};
var pathname = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?idm\/?$/, '$1').replace(/\/$/, '');
console.log(pathname)
// 源码
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'contextIdmRestRoot' : pathname + "/idm-app",
// 'webContextRoot' : pathname,
// 'datesLocalization' : false
// };
//
// DEV ENV OVERRIDES
//
// 第一次修改
FLOWABLE.CONFIG = {
'onPremise' : true,
'contextRoot' : pathname,
'contextIdmRestRoot' : pathname + "/idm-app",
'contextRoot' : "/idmweb",
'contextIdmRestRoot' : "/idmweb" + "/idm-app",
'webContextRoot' : pathname,
'datesLocalization' : false
};
//
// DEV ENV OVERRIDES
//
// 第二次修改
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'contextIdmRestRoot' : "/idmweb" + "/idm-app",
// 'webContextRoot' : pathname,
// 'datesLocalization' : false
// };
<div class="login-container">
<div class="text-center" style="padding:50px 0">
<div class="logo">
<img src="images/logo-login.png" srcset="images/logo-login.png 1x, images/logo-login@2x.png 2x">
</div>
<div class="logo">
<img src="images/logo-login.png" srcset="images/logo-login.png 1x, images/logo-login@2x.png 2x">
</div>
......@@ -14,6 +17,9 @@
<div class="form-group">
<input type="password" class="form-control" id="password" placeholder="{{'LOGIN.PASSWORD-PLACEHOLDER' | translate}}" ng-model="password" >
</div>
<div class="form-group">
<input type="password" class="form-control" id="password" placeholder="{{'LOGIN.PASSWORD-PLACEHOLDER' | translate}}" ng-model="password" >
</div>
</div>
<button type="submit" class="login-button" ng-click="login()" ng-disabled="model.loading">
<i class="glyphicon glyphicon-chevron-right"></i>
......
......@@ -19,10 +19,18 @@ var FLOWABLE = FLOWABLE || {};
var pathname = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?modeler\/?$/, '$1').replace(/\/$/, '');
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'contextModelerRestRoot' : pathname + '/modeler-app',
// 'webContextRoot' : pathname,
// 'datesLocalization' : false
// };
FLOWABLE.CONFIG = {
'onPremise' : true,
'contextRoot' : pathname,
'contextModelerRestRoot' : pathname + '/modeler-app',
'contextRoot' : "/modelerweb",
'contextModelerRestRoot' : "/modelerweb" + '/modeler-app',
'webContextRoot' : pathname,
'datesLocalization' : false
};
......@@ -20,15 +20,22 @@ var FLOWABLE = FLOWABLE || {};
var pathname = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?workflow\/?$/, '$1').replace(/\/$/, '');
var landingPathName = window.location.pathname.replace(/^(\/[^\/]*)(\/.*)?$/, '$1').replace(/\/$/, '');
FLOWABLE.CONFIG = {
'onPremise' : true,
'contextRoot' : pathname,
'webContextRoot' : pathname,
'landingContextRoot' : landingPathName,
'datesLocalization' : false
};
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'contextRoot' : pathname,
// 'webContextRoot' : pathname,
// 'landingContextRoot' : landingPathName,
// 'datesLocalization' : false
// };
//
// DEV ENV OVERRIDES
//
FLOWABLE.CONFIG = {
'onPremise' : true,
'contextRoot' : "/taskweb",
'contextModelerRestRoot' : "/taskweb" + '/modeler-app',
'webContextRoot' : pathname,
'datesLocalization' : false
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment