diff --git a/frontend/package.json b/frontend/package.json index 7ec9fde18a..cb33ced811 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -51,9 +51,7 @@ "svgo": "1.2.2", "tinymce": "^5.8.2", "umy-ui": "^1.1.6", - "vcolorpicker": "^1.1.0", "vue": "2.6.10", - "vue-axios": "3.2.4", "vue-clipboard2": "0.3.1", "vue-codemirror": "^4.0.6", "vue-friendly-iframe": "^0.20.0", diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index ebe3d87c5d..7077bd0dec 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -64,10 +64,10 @@ export const bottom2TopDrag = { } } -const closePress = { - inserted: function(el) { - el.querySelector('.el-drawer__close-btn').onmousedown = function(e) { - e.currentTarget.style.background = '#d2d3d4' +const closePress = { + inserted: function (el) { + el.querySelector('.el-drawer__close-btn').onmousedown = function (e) { + e.currentTarget.style.setProperty('background', '#d2d3d4', 'important'); } el.querySelector('.el-drawer__close-btn').onmouseup = function(e) { e.currentTarget.style.background = 'none' diff --git a/frontend/src/main.js b/frontend/src/main.js index bc30338344..7a8a248651 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -45,8 +45,6 @@ Vue.prototype.$gaodeMap = GaodeMap import UmyUi from 'umy-ui' Vue.use(UmyUi) -import vcolorpicker from 'vcolorpicker' -Vue.use(vcolorpicker) // 全屏插件 import fullscreen from 'vue-fullscreen'