src/views/discrimination/index.vue
@@ -27,20 +27,22 @@ export default { data() { return { checkinis: true, checkinis: false, topath: "" }; }, computed: {}, // created() { // if (localStorage.getItem("tokensave") != null) { // this.$router.push("/"); // } // }, // beforeRouteEnter(to, from, next) { // // store.commit("updatelogintopath", from.path); // }, created() { if ( this.$store.state.logintopath == "/examine" || this.$store.state.logintopath == "/Appraising" ) { this.$router.push({ path: "/login" }); } }, methods: { // 身份切换选择 checkin(key) {