feat: webui api (/QQVersion & /GetSysStatusRealTime)
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s

This commit is contained in:
pk5ls20 committed 2024-12-22 21:31:14 +08:00
1 parent d4488e40cf
commit 871b5688c2
6 files changed
+21 -1

No files matched your search

+9
View File
@@ -11,6 +11,7 @@ const LoginRuntime: LoginRuntimeType = {
uin: '',
nick: '',
},
QQVersion: 'unknown',
NapCatHelper: {
onOB11ConfigChanged: async () => {
return;
@@ -100,4 +101,12 @@ export const WebUiDataRuntime = {
getPackageJson() {
return LoginRuntime.packageJson;
},
setQQVersion(version: string) {
LoginRuntime.QQVersion = version;
},
getQQVersion() {
return LoginRuntime.QQVersion;
}
};