diff --git a/src/main.ts b/src/main.ts index b3a9da16..1ef9e006 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,8 +40,6 @@ import App from './App.vue' import './permission' -import { isDevMode } from '@/utils/env' - import { MyPD } from '@/components/bpmnProcessDesigner/package/index.js' import '@/components/bpmnProcessDesigner/package/theme/index.scss' import 'bpmn-js/dist/assets/diagram-js.css' @@ -54,11 +52,6 @@ import 'highlight.js/styles/github.css' //导入代码高亮样式 新版 import Logger from '@/utils/Logger' -// 本地开发模式 全局引入 element-plus 样式,加快第一次进入速度 -if (isDevMode()) { - import('element-plus/dist/index.css') -} - // 创建实例 const setupAll = async () => { const app = createApp(App) diff --git a/src/utils/env.ts b/src/utils/env.ts deleted file mode 100644 index ea271813..00000000 --- a/src/utils/env.ts +++ /dev/null @@ -1,8 +0,0 @@ -export const isDevMode = () => { - const dev = import.meta.env.VITE_DEV - if (dev && dev === 'true') { - return true - } else { - return false - } -}