Browse Source

移除 css 的引入

shizhong 2 years ago
parent
commit
5466e93d3a
2 changed files with 0 additions and 15 deletions
  1. 0 7
      src/main.ts
  2. 0 8
      src/utils/env.ts

+ 0 - 7
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)

+ 0 - 8
src/utils/env.ts

@@ -1,8 +0,0 @@
-export const isDevMode = () => {
-  const dev = import.meta.env.VITE_DEV
-  if (dev && dev === 'true') {
-    return true
-  } else {
-    return false
-  }
-}