mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-22 15:20:07 +08:00
fix: webui version
This commit is contained in:
parent
5608638e9a
commit
f553f9dc8d
@ -1,6 +1,7 @@
|
|||||||
import type { LoginRuntimeType } from '../types/data';
|
import type { LoginRuntimeType } from '../types/data';
|
||||||
import packageJson from '../../../../package.json';
|
import packageJson from '../../../../package.json';
|
||||||
import store from 'napcat-common/src/store';
|
import store from 'napcat-common/src/store';
|
||||||
|
import { napCatVersion } from 'napcat-common/src/version';
|
||||||
|
|
||||||
const LoginRuntime: LoginRuntimeType = {
|
const LoginRuntime: LoginRuntimeType = {
|
||||||
LoginCurrentTime: Date.now(),
|
LoginCurrentTime: Date.now(),
|
||||||
@ -35,7 +36,7 @@ const LoginRuntime: LoginRuntimeType = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
packageJson.version = napCatVersion;
|
||||||
export const WebUiDataRuntime = {
|
export const WebUiDataRuntime = {
|
||||||
setWebUiTokenChangeCallback (func: (token: string) => Promise<void>): void {
|
setWebUiTokenChangeCallback (func: (token: string) => Promise<void>): void {
|
||||||
LoginRuntime.onWebUiTokenChange = func;
|
LoginRuntime.onWebUiTokenChange = func;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user