Skip to content

Commit 8a26632

Browse files
author
sunxianfu
committed
feat: 修改标题
1 parent 3bcdc64 commit 8a26632

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

src/vue/about/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="container">
3-
<Banner />
3+
<Banner sub-title="关于" />
44

55
<div class="content_area">
66
<div v-html="readmeMarkdown"></div>

src/vue/components/Banner.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,20 @@
1313
import { ref } from 'vue';
1414
1515
export interface BannerProps {
16-
title?: string
16+
subTitle?: string
1717
version?: string
1818
}
1919
2020
const extentionName = ref('')
2121
const extentionVersion = ref('')
2222
23-
withDefaults(defineProps<BannerProps>(), {
24-
title: '扩展工具 - 关于',
23+
const props = withDefaults(defineProps<BannerProps>(), {
24+
subTitle: '扩展工具 - 关于',
2525
version: '版本 v1.0.1'
2626
})
2727
2828
window.addEventListener('message', (e) => {
29-
console.log('bannr data=========================', e.data)
30-
e.data.name && (extentionName.value = e.data.name)
29+
e.data.name && (extentionName.value = `${e.data.name} - ${props.subTitle}`)
3130
e.data.version && (extentionVersion.value = e.data.version)
3231
})
3332
</script>

src/vue/create-project/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="container">
3-
<Banner />
3+
<Banner sub-title="创建项目" />
44

55
<div class="content_area">
66
<div class="body-box">

src/vue/projects/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="container">
3-
<Banner />
3+
<Banner sub-title="项目" />
44

55
<div class="content_area">
66
<br>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="common-layout">
3-
<Banner />
3+
<Banner sub-title="设置" />
44

55
<el-aside>
66
<el-menu

0 commit comments

Comments
 (0)