fix: webui version
This commit is contained in:
1 parent
6fefa48f25
commit
28c97b1cb2
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user