Files
FastDeploy/examples/application/js/web_demo/src/pages/main/MenuView.vue
chenqianhe f2619b0546 [Other] Refactor js submodule (#415)
* Refactor js submodule

* Remove change-log

* Update ocr module

* Update ocr-detection module

* Update ocr-detection module

* Remove change-log
2022-10-23 14:05:13 +08:00

39 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<el-row>
<el-col>
<el-menu default-active="ocr" @open="handleOpen" @close="handleClose">
<el-sub-menu index="1">
<template #title>
<span>智能视觉Paddle.js-CV</span>
</template>
<el-menu-item index="det" @click="routerJump('/det')">
<span>图像检测</span>
</el-menu-item>
<el-menu-item index="seg" @click="routerJump('/seg')">
<span>图像分割</span>
</el-menu-item>
<el-menu-item index="rec" @click="routerJump('/rec')">
<span>图像识别</span>
</el-menu-item>
<el-menu-item index="ocr" @click="routerJump('/ocr')">
<span>OCR</span>
</el-menu-item>
</el-sub-menu>
</el-menu>
</el-col>
</el-row>
</template>
<script setup lang="ts">
import { routerJump } from "@/pages/main/utils/routerJump";
const handleOpen = (key: string, keyPath: string[]) => {
console.log(key, keyPath);
};
const handleClose = (key: string, keyPath: string[]) => {
console.log(key, keyPath);
};
</script>
<style scoped lang="less"></style>