+
{{ data.message.content }}
@@ -31,8 +31,9 @@ const chat = useChatStore();
@use './msg.scss';
.self {
.msg-popper {
+
.icon {
- float: right;
+ order: 1;
margin-left: 0.5rem;
}
}
diff --git a/components/menu/ChatMenu.vue b/components/menu/ChatMenu.vue
index 775dce4c..0c9da9ee 100644
--- a/components/menu/ChatMenu.vue
+++ b/components/menu/ChatMenu.vue
@@ -154,9 +154,6 @@ export interface MenuItem {
}
.item {
--at-apply: "card-rounded-df hover:(bg-color)";
- .icon {
- --at-apply: "bg-light dark:bg-none";
- }
&.action {
--at-apply: "!bg-[var(--el-color-primary)] shadow";
.icon {
diff --git a/composables/hooks/useSetting.ts b/composables/hooks/useSetting.ts
index 1e0fecb5..d5a741b7 100644
--- a/composables/hooks/useSetting.ts
+++ b/composables/hooks/useSetting.ts
@@ -15,6 +15,9 @@ export function useSettingNotice({
const setting = useSettingStore();
const showNotice = ref(false);
const notice = ref
("# 暂无内容"); // 公告内容
+ const runtime = useRuntimeConfig();
+
+ const currentVersion = computed(() => setting.isDesktop ? setting.appUploader.version : runtime.public.version);
// 显示新版本 + 当前版本 更新时间线
const showUpateNoticeLine = ref(false);
@@ -172,6 +175,7 @@ export function useSettingNotice({
return {
showNotice,
notice,
+ currentVersion,
showUpateNoticeLine,
showVersionNotice,
handleCheckUpadate,
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 97f4a362..c31999f7 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -2,11 +2,13 @@
// import { prismjsPlugin } from "vite-plugin-prismjs";
// import { pwa } from "./config/pwa";
import { appDescription, appName } from "./constants/index";
+import * as packageJson from "./package.json";
import "dayjs/locale/zh-cn";
const BASE_URL = process.env.NUXT_PUBLIC_API_BASE_URL;
const isSSR = process.env.NUXT_PUBLIC_SPA;
const mode = process.env.NUXT_PUBLIC_NODE_ENV as "development" | "production" | "test";
+const version = packageJson?.version;
// 打印
console.log(`mode:${mode} api_url:${BASE_URL} SSR:${isSSR}`);
export default defineNuxtConfig({
@@ -18,6 +20,7 @@ export default defineNuxtConfig({
public: {
baseUrl: BASE_URL,
mode,
+ version,
},
},
build: {
diff --git a/pages/index/setting.vue b/pages/index/setting.vue
index e209c8f8..e211f618 100644
--- a/pages/index/setting.vue
+++ b/pages/index/setting.vue
@@ -26,6 +26,7 @@ const {
const {
showNotice,
notice,
+ currentVersion,
showUpateNoticeLine,
showVersionNotice,
handleCheckUpadate,
@@ -154,7 +155,7 @@ const {
关于更新
-
{{ setting.appUploader.version ? `v${setting.appUploader.version}` : "" }} 更新日志
+
{{ currentVersion ? `v${currentVersion}` : "" }} 更新日志
v{{ item.version }}
-
+
当前