feat(components): 添加图片验证码

This commit is contained in:
Soybean
2021-10-18 16:45:35 +08:00
parent 9097fa3866
commit 336c7766f9
17 changed files with 336 additions and 270 deletions

View File

@@ -31,7 +31,7 @@
</template>
<script setup lang="ts">
import { ref, computed } from 'vue';
import { ref, computed, watch } from 'vue';
import type { VNodeChild } from 'vue';
import { NScrollbar } from 'naive-ui';
import { useRoute } from 'vue-router';
@@ -80,6 +80,13 @@ function handleMouseLeaveMenu() {
activeParentRouteName.value = getActiveRouteName();
hideDrawer();
}
watch(
() => route.name,
() => {
activeParentRouteName.value = getActiveRouteName();
}
);
</script>
<style scoped>
.mix-menu-width {