|
@@ -241,15 +241,18 @@ export default {
|
|
|
this.$store
|
|
|
.dispatch("user/getMenuList", this)
|
|
|
.then((res) => {
|
|
|
- console.log(res);
|
|
|
- window.vm.$router.push({
|
|
|
- path: this.redirect
|
|
|
- ? this.redirect
|
|
|
- : res === "success-dataV"
|
|
|
- ? "/bigScreen/datavScr"
|
|
|
- : "/welcome",
|
|
|
- query: this.otherQuery,
|
|
|
- });
|
|
|
+ if (res === "success") {
|
|
|
+ console.log(res);
|
|
|
+ window.vm.$router.push({
|
|
|
+ path: this.redirect
|
|
|
+ ? this.redirect
|
|
|
+ : res === "success-dataV"
|
|
|
+ ? "/bigScreen/datavScr"
|
|
|
+ : "/welcome",
|
|
|
+ query: this.otherQuery,
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
this.loading = false;
|
|
|
})
|
|
|
.catch((err) => {
|