mirror of
https://gitee.com/czh-dev/upload-hub
synced 2026-09-04 23:17:27 +08:00
fix:修改前端项目名并添加版本号展示
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "upload-file-component",
|
"name": "upload-hub",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -3,14 +3,22 @@
|
|||||||
<div class="about-content" @click.stop>
|
<div class="about-content" @click.stop>
|
||||||
<h2>关于</h2>
|
<h2>关于</h2>
|
||||||
<p>这个人很懒,什么都没有留下,只说自己爱吃炸排骨。。。</p>
|
<p>这个人很懒,什么都没有留下,只说自己爱吃炸排骨。。。</p>
|
||||||
|
<span class="version">版本号:{{ version }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import packageInfo from "../../../package.json";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AboutModal',
|
name: 'AboutModal',
|
||||||
props: { show: Boolean },
|
props: { show: Boolean },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
version: packageInfo.version
|
||||||
|
};
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close() {
|
||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
@@ -43,6 +51,7 @@ export default {
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-content h2 {
|
.about-content h2 {
|
||||||
@@ -56,4 +65,11 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.version {
|
||||||
|
right: 10px;
|
||||||
|
bottom: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user