src/components/validCode.vue
@@ -5,7 +5,7 @@ :width="state.width" :height="state.height" @click="handleDraw" style="border-radius: 5px;" style="border-radius: 5px" ></canvas> </div> </template> @@ -15,7 +15,7 @@ import { useStore } from "vuex"; // 引入useStore 方法 import emitter from "@/utils/bus"; const store = useStore(); // 该方法用于返回store 实例 const verify = ref(null); const verify = ref(); const state = reactive({ pool: "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", // 字符串 width: 120, @@ -133,4 +133,4 @@ justify-content: center; border-radius: 5px; } </style> </style>