Commit 21a170e8 by Tang

feat: 验证码组件问题

parent 9a100e33
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
"v-clipboard": "^2.2.2", "v-clipboard": "^2.2.2",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-baidu-map": "^0.21.22", "vue-baidu-map": "^0.21.22",
"vue-puzzle-vcode": "^1.1.9",
"vue-router": "^3.1.6", "vue-router": "^3.1.6",
"vue-slick-carousel": "^1.0.6", "vue-slick-carousel": "^1.0.6",
"vue-social-share": "^0.0.3", "vue-social-share": "^0.0.3",
......
...@@ -7,7 +7,13 @@ ...@@ -7,7 +7,13 @@
<script> <script>
export default { export default {
mounted() { mounted() {
if (!!window.ActiveXObject || 'ActiveXObject' in window) { function checkIE () {
if(!!window.ActiveXObject || 'ActiveXObject' in window){
return true
}
return '-ms-scroll-limit' in document.documentElement.style && '-ms-ime-align' in document.documentElement.style
}
if (checkIE()) {
window.addEventListener('hashchange', () => { window.addEventListener('hashchange', () => {
let currentPath = window.location.hash.slice(1) let currentPath = window.location.hash.slice(1)
if (this.$route.path !== currentPath) { if (this.$route.path !== currentPath) {
......
...@@ -267,7 +267,8 @@ ...@@ -267,7 +267,8 @@
</template> </template>
<script> <script>
import Vcode from "vue-puzzle-vcode"; // import Vcode from "vue-puzzle-vcode";
import Vcode from "../../components/VerifyCode/VerifyCode.vue";
import validation from "@/views/Search/validation"; import validation from "@/views/Search/validation";
import pagination from "@/views/Search/pagination"; import pagination from "@/views/Search/pagination";
import moment from "moment"; import moment from "moment";
......
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