Commit 2581f4ba by tang

feat: 验证码自动刷新

parent 5e74f315
......@@ -123,6 +123,7 @@ export default {
"没有符合条件的记录!";
this.result = null;
}
this.getCaptcha();
},
},
};
......
......@@ -109,6 +109,7 @@ export default {
"您输入的商品条码格式不正确,请确认后重试。";
this.result = null;
}
this.getCaptcha();
},
},
};
......
......@@ -128,6 +128,7 @@ export default {
"您输入的商品条码格式不正确,请确认后重试。";
this.result = null;
}
this.getCaptcha()
},
},
};
......
......@@ -111,6 +111,7 @@ export default {
"没有符合条件的记录!";
this.result = null;
}
this.getCaptcha();
},
},
};
......
......@@ -177,7 +177,6 @@
</template>
<script>
import {getUUID} from "@/utils/utils";
import Vcode from "vue-puzzle-vcode";
import validation from "@/views/Search/validation";
......@@ -213,21 +212,7 @@ export default {
components: {
Vcode,
},
created() {
this.getCaptcha();
},
methods: {
// 获取验证码
getCaptcha() {
this.uuid = getUUID()
const query = {
uuid: this.uuid
};
this.$api.getCaptcha(query).then((res) => {
console.log(res, "res");
this.captchaPath = window.URL.createObjectURL(res.body);
});
},
// 点击此处进行验证
handleVerification() {
console.log("点击此处进行验证");
......@@ -271,6 +256,7 @@ export default {
"没有符合条件的记录!";
this.result = null;
}
this.getCaptcha();
},
handleSearchProduct() {
......
......@@ -146,6 +146,7 @@ export default {
"没有符合条件的记录!";
this.result = null;
}
this.getCaptcha();
},
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment