环境变量与修复debugger一个键
This commit is contained in:
parent
1d9a65387e
commit
96557fb255
|
@ -3,6 +3,7 @@ import { defineStore } from 'pinia'
|
|||
export const useDebuggerStore = defineStore('debugger', {
|
||||
state() {
|
||||
return {
|
||||
enable: import.meta.env.VITE_APP_ENV !== 'prod',
|
||||
ui: {
|
||||
showLayoutGrid: false
|
||||
}
|
||||
|
|
5
typings/env.d.ts
vendored
5
typings/env.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
declare global {
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APP_BASE_MODE: 'local' | 'url' | 'port'
|
||||
readonly VITE_APP_BASE_URL: string
|
||||
readonly VITE_APP_IMAGE_URL: string
|
||||
readonly VITE_APP_ENV: string
|
||||
readonly VITE_APP_BASE_PORT: number
|
||||
readonly VITE_APP_ENV: 'prod' | 'test' | 'dev'
|
||||
// 更多环境变量...
|
||||
}
|
||||
interface ImportMeta {
|
||||
|
|
Loading…
Reference in New Issue
Block a user