fix: webui version

This commit is contained in:
手瓜一十雪 2025-11-14 11:51:23 +08:00
parent 5608638e9a
commit f553f9dc8d

View File

@ -1,6 +1,7 @@
import type { LoginRuntimeType } from '../types/data';
import packageJson from '../../../../package.json';
import store from 'napcat-common/src/store';
import { napCatVersion } from 'napcat-common/src/version';
const LoginRuntime: LoginRuntimeType = {
LoginCurrentTime: Date.now(),
@ -35,7 +36,7 @@ const LoginRuntime: LoginRuntimeType = {
},
};
packageJson.version = napCatVersion;
export const WebUiDataRuntime = {
setWebUiTokenChangeCallback (func: (token: string) => Promise<void>): void {
LoginRuntime.onWebUiTokenChange = func;