diff --git a/env.d.ts b/env.d.ts
index 8cee1517..25a0ba96 100644
--- a/env.d.ts
+++ b/env.d.ts
@@ -1,2 +1,12 @@
///
///
+
+interface ImportMetaEnv {
+ PACKAGE_VERSION: string;
+ PROD: boolean;
+ }
+
+ interface ImportMeta {
+ readonly env: ImportMetaEnv;
+ }
+
\ No newline at end of file
diff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vue
index 295ef5b1..8c620b6c 100644
--- a/src/layouts/base.layout.vue
+++ b/src/layouts/base.layout.vue
@@ -15,6 +15,9 @@ const themeVars = useThemeVars()
const activeKey = ref(null)
const route = useRoute()
const styleStore = useStyleStore()
+const version = import.meta.env.PACKAGE_VERSION;
+
+console.log(themeVars.value)
const makeLabel = (text: string, to: string) => () => h(RouterLink, { to }, { default: () => text })
const makeIcon = (icon: Component) => () => h(NIcon, null, { default: () => h(icon) })
@@ -71,6 +74,36 @@ const m = toolsByCategory.map(category => ({
:options="m"
:indent="20"
/>
+
+
@@ -164,6 +197,13 @@ const m = toolsByCategory.map(category => ({
// background-size: @size @size;
// }
+.footer {
+ text-align: center;
+ color: #838587;
+ margin-top: 20px;
+ padding: 20px 0;
+}
+
.sider-content {
padding-top: 160px;
padding-bottom: 200px;
diff --git a/vite.config.ts b/vite.config.ts
index abf81c2e..c2c4d8d3 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -59,4 +59,7 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
+ define: {
+ 'import.meta.env.PACKAGE_VERSION': JSON.stringify(process.env.npm_package_version),
+ },
});