|
@@ -39,7 +39,14 @@ const UI = {
|
|
|
btn: ['确认','取消']
|
|
|
}, () => {
|
|
|
sessionStorage.clear();
|
|
|
- window.location.href = 'login.html';
|
|
|
+ const path = location.pathname.split("/")
|
|
|
+ let fileName = path[path.length - 1].split(".")
|
|
|
+ fileName = fileName[0].split("_")[1]
|
|
|
+ if(fileName){
|
|
|
+ window.location.href = 'login_' + fileName + '.html';
|
|
|
+ }else{
|
|
|
+ window.location.href = 'login.html';
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
// 点击收起底部
|
|
@@ -145,7 +152,7 @@ const UI = {
|
|
|
// }
|
|
|
// }));
|
|
|
util.get({
|
|
|
- url: DPZHD_PATH + '/automation/guide/switch',
|
|
|
+ url: DPZHD_PATH + 'automation/guide/switch',
|
|
|
data: {
|
|
|
id: data.systemInfo.system_id
|
|
|
},
|
|
@@ -235,7 +242,7 @@ const UI = {
|
|
|
});
|
|
|
}
|
|
|
customLayui.post({
|
|
|
- url: DPZHD_PATH + '/automation/guide/init',
|
|
|
+ url: DPZHD_PATH + 'automation/guide/init',
|
|
|
data: JSON.stringify({'init': JSON.stringify(array)}),
|
|
|
success: function(res) {
|
|
|
console.log(res)
|