提交 0f530411 编写于 作者: P Pan

fix:fixed theme-picker bug

上级 dd3e22d5
......@@ -7,6 +7,7 @@
<script>
import { getVersion } from '@/utils/index.js'
const version = getVersion('element-ui') // element-ui version from package.json
const ORIGINAL_THEME = '#409EFF' // default color
......
......@@ -266,9 +266,8 @@ export function deepClone(source) {
return targetObj
}
// get dependencies verison from package.json by webpack.DefinePlugin
// get dependencies verison from package.json
export function getVersion(name) {
import('../../package').then(p => {
return p.dependencies[name]
})
const p = require('../../package')
return p.dependencies[name]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册