|
|
@@ -66,6 +66,7 @@
|
|
|
<script>
|
|
|
import CaptchaCanvas from "@/components/CaptchaCanvas.vue";
|
|
|
import { mockLogin } from "@/mock/api";
|
|
|
+import Toast from "@/plugins/toast";
|
|
|
|
|
|
export default {
|
|
|
// eslint-disable-next-line vue/multi-word-component-names
|
|
|
@@ -114,10 +115,9 @@ export default {
|
|
|
captcha: this.captchaInput
|
|
|
});
|
|
|
|
|
|
- if (!res.ok) {
|
|
|
- this.hint = res.message;
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (!res.ok) return window.$toast.error(res.message);
|
|
|
+
|
|
|
+ console.log('123131');
|
|
|
this.doorNavigated = false;
|
|
|
this.isDoorOpening = false;
|
|
|
this.$nextTick(() => {
|