移除 css 的引入
parent
c7172e9295
commit
5466e93d3a
|
@ -40,8 +40,6 @@ import App from './App.vue'
|
||||||
|
|
||||||
import './permission'
|
import './permission'
|
||||||
|
|
||||||
import { isDevMode } from '@/utils/env'
|
|
||||||
|
|
||||||
import { MyPD } from '@/components/bpmnProcessDesigner/package/index.js'
|
import { MyPD } from '@/components/bpmnProcessDesigner/package/index.js'
|
||||||
import '@/components/bpmnProcessDesigner/package/theme/index.scss'
|
import '@/components/bpmnProcessDesigner/package/theme/index.scss'
|
||||||
import 'bpmn-js/dist/assets/diagram-js.css'
|
import 'bpmn-js/dist/assets/diagram-js.css'
|
||||||
|
@ -54,11 +52,6 @@ import 'highlight.js/styles/github.css' //导入代码高亮样式 新版
|
||||||
|
|
||||||
import Logger from '@/utils/Logger'
|
import Logger from '@/utils/Logger'
|
||||||
|
|
||||||
// 本地开发模式 全局引入 element-plus 样式,加快第一次进入速度
|
|
||||||
if (isDevMode()) {
|
|
||||||
import('element-plus/dist/index.css')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 创建实例
|
// 创建实例
|
||||||
const setupAll = async () => {
|
const setupAll = async () => {
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
export const isDevMode = () => {
|
|
||||||
const dev = import.meta.env.VITE_DEV
|
|
||||||
if (dev && dev === 'true') {
|
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue