zzd
This commit is contained in:
1 parent
4df8ee27da
commit
bcd3437b96
5 files changed
+27
-10
No files matched your search
Vendored
+8
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user