|
|
@ -208,12 +208,14 @@ export default {
|
|
|
|
this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
|
|
this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
|
|
let data = this.options.find(v => v.processId === this.loginForm.processId) || {}
|
|
|
|
let data = this.options.find(v => v.processId === this.loginForm.processId) || {}
|
|
|
|
let routeData = this.floorData.find(v => v.floor === data.processFloor && v.processId === data.processId) || {}
|
|
|
|
let routeData = this.floorData.find(v => v.floor === data.processFloor && v.processId === data.processId) || {}
|
|
|
|
|
|
|
|
let query = {a:1}
|
|
|
|
|
|
|
|
routeData.query = query
|
|
|
|
if (routeData.route) {
|
|
|
|
if (routeData.route) {
|
|
|
|
sessionStorage.setItem("FLOORDATA", JSON.stringify(routeData))
|
|
|
|
sessionStorage.setItem("FLOORDATA", JSON.stringify(routeData))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// this.$router.push({path: this.redirect || "/"}).catch(() => {
|
|
|
|
// this.$router.push({path: this.redirect || "/"}).catch(() => {
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
this.$router.push({path: routeData.route || this.redirect || "/",query:{}}).catch(() => {
|
|
|
|
this.$router.push({path: routeData.route || this.redirect || "/"}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|