This commit is contained in:
zjf committed 2026-05-08 22:57:15 +08:00
1 parent 4df8ee27da
commit bcd3437b96
5 files changed
+27 -10

No files matched your search

+8
View File
@@ -1,5 +1,13 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_VCONSOLE?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare module "gdt-jsapi" {
const dd: { getAuthCode: (opts: { corpId?: string }) => Promise<unknown> }
export default dd
+7
View File
@@ -5,6 +5,13 @@ import pinia from "../src/sheep/stores/index"
import App from "./App.vue"
import tmUi from "./uni_modules/tm-ui"
// #ifdef H5
import VConsole from "vconsole"
if (import.meta.env.VITE_VCONSOLE === "true") {
new VConsole()
}
// #endif
export function createApp() {
const app = createSSRApp(App)