Commit fa48d786 by 张杰

修改登录失效页面路径

1 parent 7248d230
...@@ -136,11 +136,11 @@ ...@@ -136,11 +136,11 @@
}); });
} }
}else{ }else{
window.location.href = '../ots/login'; window.location.href = '/';
} }
}, },
errorUpload(err){ errorUpload(err){
window.location.href = '../ots/login'; window.location.href = '/';
}, },
submitUpload() { submitUpload() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}); });
} }
} else { } else {
window.location.href = "../ots/login"; window.location.href = "/";
} }
}, },
submitUpload() { submitUpload() {
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
this.$emit("onImportModalChange", false); this.$emit("onImportModalChange", false);
}, },
errorUpload(err) { errorUpload(err) {
window.location.href = "../ots/login"; window.location.href = "/";
}, },
}, },
}; };
......
...@@ -126,11 +126,11 @@ export default { ...@@ -126,11 +126,11 @@ export default {
}); });
} }
} else { } else {
window.location.href = "../ots/login"; window.location.href = "/";
} }
}, },
errorUpload(err) { errorUpload(err) {
window.location.href = "../ots/login"; window.location.href = "/";
}, },
submitUpload() { submitUpload() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
}); });
} }
} else { } else {
window.location.href = "../ots/login"; window.location.href = "/";
} }
}, },
submitUpload() { submitUpload() {
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
exportExcel("device/deviceManage/downLoadDeviceManage"); exportExcel("device/deviceManage/downLoadDeviceManage");
}, },
errorUpload(err) { errorUpload(err) {
window.location.href = "../ots/login"; window.location.href = "/";
}, },
}, },
components: { components: {
......
...@@ -335,7 +335,7 @@ export default { ...@@ -335,7 +335,7 @@ export default {
setTimeout(() => (this.form.filename = ""), 0); setTimeout(() => (this.form.filename = ""), 0);
} }
} else { } else {
window.location.href = "、"; window.location.href = "/";
} }
}, },
submitUpload() { submitUpload() {
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
} }
}else{ }else{
window.location.href = '../ots/login'; window.location.href = '/';
} }
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
}, },
errorUpload(err){ errorUpload(err){
window.location.href = '../ots/login'; window.location.href = '/';
} }
} }
} }
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
window.open(data.fileUrl) window.open(data.fileUrl)
} }
}else{ }else{
window.location.href = '../ots/login'; window.location.href = '/';
} }
}, },
submitUpload() { submitUpload() {
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
exportExcel('device/deviceManage/downLoadDeviceManage') exportExcel('device/deviceManage/downLoadDeviceManage')
}, },
errorUpload(err){ errorUpload(err){
window.location.href = '../ots/login'; window.location.href = '/';
} }
}, },
components: { components: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!