mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
perf: perf menu mini style
This commit is contained in:
@@ -4,6 +4,9 @@ import getProjectSetting from '/@/settings/projectSetting';
|
||||
|
||||
import { getGlobEnvConfig, isDevMode } from '/@/utils/env';
|
||||
import { getShortName } from '../../../build/getShortName';
|
||||
import { warn } from '/@/utils/log';
|
||||
|
||||
const reg = /[a-zA-Z\_]*/;
|
||||
|
||||
const ENV_NAME = getShortName(import.meta.env);
|
||||
const ENV = ((isDevMode()
|
||||
@@ -16,6 +19,10 @@ const {
|
||||
VITE_GLOB_API_URL_PREFIX,
|
||||
} = ENV;
|
||||
|
||||
if (!reg.test(VITE_GLOB_APP_SHORT_NAME)) {
|
||||
warn(`VITE_GLOB_APP_SHORT_NAME 变量只能是字符/下划线,请在环境变量中修改并重新运行。`);
|
||||
}
|
||||
|
||||
export const useSetting = (): SettingWrap => {
|
||||
// Take global configuration
|
||||
const glob: Readonly<GlobConfig> = {
|
||||
|
Reference in New Issue
Block a user