|
|
@@ -131,22 +131,22 @@ export default {
|
|
|
mounted() {},
|
|
|
created() {
|
|
|
this.loadingFlag = true;
|
|
|
- // this.getData(); // 本地调试关闭
|
|
|
+ this.getData(); // 线上打开
|
|
|
// 本地调试打开
|
|
|
- this.loadingFlag = false;
|
|
|
- // this.isManufacturer = "manufacture";
|
|
|
- this.isManufacturer = "distributor"
|
|
|
- if (this.isManufacturer === 'manufacture') {
|
|
|
- if(this.$route.path !== '/uploadInfor') this.$router.replace({ path: "/uploadInfor" });
|
|
|
- localStorage.setItem("userId", 3084);
|
|
|
- sessionStorage.setItem("userNameAccount", "L0M14_MM");
|
|
|
- this.userAccount = "L0M14_MM";
|
|
|
- } else {
|
|
|
- if(this.$route.path !== '/inforList') this.$router.replace({ path: "/inforList" });
|
|
|
- localStorage.setItem("userId", 2002);
|
|
|
- sessionStorage.setItem("userNameAccount", "L0210_MM");
|
|
|
- this.userAccount = "L0210_MM";
|
|
|
- }
|
|
|
+ // this.loadingFlag = false;
|
|
|
+ // this.isManufacturer = "manufacturer";
|
|
|
+ // // this.isManufacturer = "distributor"
|
|
|
+ // if (this.isManufacturer === 'manufacturer') {
|
|
|
+ // if(this.$route.path !== '/uploadInfor') this.$router.replace({ path: "/uploadInfor" });
|
|
|
+ // localStorage.setItem("userId", 3084);
|
|
|
+ // sessionStorage.setItem("userNameAccount", "L0M14_MM");
|
|
|
+ // this.userAccount = "L0M14_MM";
|
|
|
+ // } else {
|
|
|
+ // if(this.$route.path !== '/inforList') this.$router.replace({ path: "/inforList" });
|
|
|
+ // localStorage.setItem("userId", 2002);
|
|
|
+ // sessionStorage.setItem("userNameAccount", "L0210_MM");
|
|
|
+ // this.userAccount = "L0210_MM";
|
|
|
+ // }
|
|
|
},
|
|
|
};
|
|
|
</script>
|