Skip to content

Commit 09dbc27

Browse files
author
sunxianfu
committed
feat: 统一banner
1 parent e71531e commit 09dbc27

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

src/vue/components/Banner.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="banner">
3-
<img :src="logo" class="logo" />
3+
<img src="https://oss-club.rt-thread.org/uploads/20250820/d1558ec1b465f2a3c44646550211a6d5.png" class="logo" />
44
<div class="info">
55
<h1>{{ title }}</h1>
66
<p>{{ version }}</p>
@@ -11,13 +11,11 @@
1111

1212
<script setup lang="ts">
1313
export interface BannerProps {
14-
logo?: string
1514
title?: string
1615
version?: string
1716
}
1817
1918
withDefaults(defineProps<BannerProps>(), {
20-
logo: '/rt-thread_vscode.png',
2119
title: '扩展工具 - 关于',
2220
version: '版本 v1.0.1'
2321
})

src/vue/setting/router.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createRouter, createWebHashHistory } from "vue-router";
2-
import Environment from './view/environment/index.vue'
3-
import Sdk from './view/sdk/index.vue'
4-
import Toolchains from './view/toolchains/index.vue'
5-
import LayoutView from './view/layout/index.vue'
2+
import Environment from './view/environment/index.vue';
3+
import Sdk from './view/sdk/index.vue';
4+
import Toolchains from './view/toolchains/index.vue';
5+
import LayoutView from './view/layout/index.vue';
66

77
export const routes = [
88
{
@@ -56,11 +56,11 @@ export const routes = [
5656
},
5757
]
5858
}
59-
]
59+
];
6060

6161
const router = createRouter({
6262
history: createWebHashHistory(),
6363
routes
64-
})
64+
});
6565

66-
export default router
66+
export default router;

src/vue/setting/view/layout/index.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div class="common-layout">
3-
<el-container>
4-
<Banner />
3+
<Banner />
54

65
<el-aside>
76
<el-menu
@@ -29,7 +28,6 @@
2928
<router-view></router-view>
3029
</el-main>
3130
</el-container>
32-
</el-container>
3331
</div>
3432
</template>
3533
<script setup lang="ts">

0 commit comments

Comments
 (0)