mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +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 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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user