@@ -56,7 +56,7 @@
</div>
</template>
-<script>
+<script>
import {getToken, hasLogin} from '@/utils/auth'
export default {
name: "Login",
@@ -141,11 +141,7 @@ export default {
else this.$router.push({ path: "/dashboard" });
// else this.$router.push({ path: this.redirect || "/" });
})
- .catch((error) => {
- this.$message({
- message: error,
- type: "error"
- });
+ .catch(() => {
this.loading = false;
this.getCaptcha();
});