mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: vite-env
This commit is contained in:
parent
92bf42878a
commit
25134c6ac6
@ -110,7 +110,10 @@ export class NapCatOnebot11 {
|
||||
// }
|
||||
// };
|
||||
try {
|
||||
//console.log(buf2hex(Buffer.from(protobufData)));
|
||||
// 生产环境会自己去掉
|
||||
if (import.meta.env.MODE == 'development') {
|
||||
console.log(buf2hex(Buffer.from(protobufData)));
|
||||
}
|
||||
const sysMsg = SysData.fromBinary(Buffer.from(protobufData));
|
||||
const peeruin = sysMsg.header[0].peerNumber;
|
||||
const peeruid = sysMsg.header[0].peerString;
|
||||
|
10
src/vite-env.d.ts
vendored
Normal file
10
src/vite-env.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APP_TITLE: string
|
||||
// 更多环境变量...
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user