From 5466e93d3a8477ff5c3fd0ac3b454c04037383cc Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Tue, 13 Jun 2023 12:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20css=20=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 7 ------- src/utils/env.ts | 8 -------- 2 files changed, 15 deletions(-) delete mode 100644 src/utils/env.ts 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 - } -}