feat: version display
This commit is contained in:
1 parent
6a5cc8212b
commit
2f64587f88
2 files changed
+10
-5
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "napcat.webui",
|
"name": "napcat.webui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"webui:lint": "eslint --fix src/**/*.{js,ts,vue}",
|
"webui:lint": "eslint --fix src/**/*.{js,ts,vue}",
|
||||||
|
|||||||
@@ -13,9 +13,11 @@
|
|||||||
<t-list-item class="list-item">
|
<t-list-item class="list-item">
|
||||||
<span class="item-label">版本信息:</span>
|
<span class="item-label">版本信息:</span>
|
||||||
<span class="item-content">
|
<span class="item-content">
|
||||||
<t-tag class="tag-item" theme="success"> WebUi: 1.0.0 </t-tag>
|
<t-tag class="tag-item" theme="success"> WebUi: {{ pkg.version }} </t-tag>
|
||||||
<t-tag class="tag-item" theme="success"> NapCat: 4.?.? </t-tag>
|
<t-tag class="tag-item" theme="success"> NapCat: {{ napCatVersion }} </t-tag>
|
||||||
<t-tag class="tag-item" theme="success"> Tdesign: 1.10.3 </t-tag>
|
<t-tag class="tag-item" theme="success">
|
||||||
|
TDesign: {{ pkg.dependencies['tdesign-vue-next'] }}
|
||||||
|
</t-tag>
|
||||||
</span>
|
</span>
|
||||||
</t-list-item>
|
</t-list-item>
|
||||||
</t-list>
|
</t-list>
|
||||||
@@ -23,7 +25,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts"></script>
|
<script setup lang="ts">
|
||||||
|
import pkg from '../../package.json';
|
||||||
|
import { napCatVersion } from '../../../src/common/version';
|
||||||
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.about-us {
|
.about-us {
|
||||||
|
|||||||
Reference in new issue
Block a user