feat(Editor): 编辑页面点击Logo回到首页
This commit is contained in:
parent
b58be1adb5
commit
d1caa36868
@ -5,8 +5,8 @@
|
||||
## 🛠️ 开发流程
|
||||
|
||||
### 环境要求
|
||||
- Node.js 18+
|
||||
- Yarn
|
||||
- Node.js 23.11+
|
||||
- PNPM
|
||||
|
||||
### 代码规范
|
||||
1. Git 提交信息格式:
|
||||
@ -46,7 +46,7 @@
|
||||
2. 编写单元测试(重要功能必须包含)
|
||||
3. 执行代码检查:
|
||||
```bash
|
||||
yarn lint
|
||||
pnpm lint
|
||||
```
|
||||
4. 发起 Pull Request 至 dev 分支
|
||||
|
||||
|
||||
BIN
packages/editor/public/static/images/carousel/yuyun.jpg
Normal file
BIN
packages/editor/public/static/images/carousel/yuyun.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 378 KiB |
@ -1,15 +1,23 @@
|
||||
<script lang="ts" setup>
|
||||
import {inject} from "vue";
|
||||
import { useRouter } from 'vue-router';
|
||||
import NavigationOperation from '@/components/header/NavigationOperation.vue';
|
||||
import RightOperation from '@/components/header/RightOperation.vue';
|
||||
import Logo from "@/components/header/Logo.vue";
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const sceneInfo = inject<ISceneInfo>("sceneInfo");
|
||||
|
||||
function handleLogoClick(){
|
||||
// 回首页
|
||||
router.push('/');
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex items-center">
|
||||
<Logo class="w-36px h-36px mr-15px" />
|
||||
<Logo class="w-36px h-36px mr-15px cursor-pointer" @click="handleLogoClick" />
|
||||
|
||||
<NavigationOperation />
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user