diff --git a/package.json b/package.json index 75d45f7..96fd18e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "build": "vite build" }, "dependencies": { - "black-knight": "^1.1.14", "element-plus": "^2.1.7", "vite-plugin-require-transform": "^1.0.3", "vue": "^3.2.25", @@ -17,6 +16,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^2.3.0", "@vitejs/plugin-vue-jsx": "^1.3.10", + "black-knight": "1.2.2", "less": "^4.1.2", "less-loader": "7.x", "sass-resources-loader": "^2.2.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fdd2e6c..8b0179a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,7 +3,7 @@ lockfileVersion: 5.3 specifiers: '@vitejs/plugin-vue': ^2.3.0 '@vitejs/plugin-vue-jsx': ^1.3.10 - black-knight: ^1.1.14 + black-knight: 1.2.2 element-plus: ^2.1.7 less: ^4.1.2 less-loader: 7.x @@ -15,7 +15,6 @@ specifiers: vuex: ^4.0.2 dependencies: - black-knight: 1.1.14 element-plus: 2.1.10_vue@3.2.31 vite-plugin-require-transform: 1.0.3 vue: 3.2.31 @@ -25,6 +24,7 @@ dependencies: devDependencies: '@vitejs/plugin-vue': 2.3.1_vite@2.9.0+vue@3.2.31 '@vitejs/plugin-vue-jsx': 1.3.10 + black-knight: 1.2.2 less: 4.1.2 less-loader: 7.3.0_less@4.1.2 sass-resources-loader: 2.2.4 @@ -600,9 +600,9 @@ packages: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} dev: true - /black-knight/1.1.14: - resolution: {integrity: sha512-x2y45en+Q7AXcGejtDt7qEUT7uBcThySRKA5srolnnnwK4CLJjlDeRBxwiWEmdGXD+MKoczoN3ploglnFDgHIg==} - dev: false + /black-knight/1.2.2: + resolution: {integrity: sha512-M6uD+umcXAeB916Fnr1IIu+j6HtKwv20h3h2pWgdqZsy2pFIa5LpoOZbnZy41MBHondKKtyLUo4FhFjI/tYdqA==} + dev: true /brace-expansion/1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} @@ -1020,8 +1020,8 @@ packages: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} - /graceful-fs/4.2.9: - resolution: {integrity: sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==} + /graceful-fs/4.2.10: + resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} requiresBuild: true dev: true optional: true @@ -1134,7 +1134,7 @@ packages: tslib: 2.3.1 optionalDependencies: errno: 0.1.8 - graceful-fs: 4.2.9 + graceful-fs: 4.2.10 image-size: 0.5.5 make-dir: 2.1.0 mime: 1.6.0 diff --git a/src/main.js b/src/main.js index 6084daa..e855a40 100644 --- a/src/main.js +++ b/src/main.js @@ -3,6 +3,7 @@ import App from './App.vue' import router from './router' import store from '@/store' import regComponents from '@/components' +import 'black-knight/lib/config/custom' import ElementPlus from 'element-plus' import "element-plus/dist/index.css" console.log(import.meta.env,'--------------import------')