mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 项目依赖信息直接从package.json获取
This commit is contained in:
@ -11,8 +11,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { NDescriptions, NDescriptionsItem } from 'naive-ui';
|
||||
import { packageVersion } from '@/utils';
|
||||
import { packageJson } from '@/utils';
|
||||
|
||||
const dependencies = packageVersion.devDependencies;
|
||||
const dependencies = packageJson.devDependencies;
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -11,8 +11,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { NDescriptions, NDescriptionsItem } from 'naive-ui';
|
||||
import { packageVersion } from '@/utils';
|
||||
import { packageJson } from '@/utils';
|
||||
|
||||
const { dependencies } = packageVersion;
|
||||
const { dependencies } = packageJson;
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<h3 class="pb-18px text-16px font-semibold">项目信息</h3>
|
||||
<n-descriptions label-placement="left" bordered size="small" :column="2">
|
||||
<n-descriptions-item label="版本">
|
||||
<n-tag type="primary">1.0.0</n-tag>
|
||||
<n-tag type="primary">{{ version }}</n-tag>
|
||||
</n-descriptions-item>
|
||||
<n-descriptions-item label="最后编译时间">
|
||||
<n-tag type="primary">{{ lastestBuildTime }}</n-tag>
|
||||
@ -20,7 +20,9 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { NDescriptions, NDescriptionsItem, NTag } from 'naive-ui';
|
||||
import { packageJson } from '@/utils';
|
||||
|
||||
const { version } = packageJson;
|
||||
const lastestBuildTime = PROJECT_BUILD_TIME;
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
Reference in New Issue
Block a user