diff --git a/package.json b/package.json index 96fd18e..e21fc37 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^2.3.0", "@vitejs/plugin-vue-jsx": "^1.3.10", - "black-knight": "1.2.2", + "black-knight": "1.2.5", "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 8b0179a..02f9363 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.2.2 + black-knight: 1.2.5 element-plus: ^2.1.7 less: ^4.1.2 less-loader: 7.x @@ -24,7 +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 + black-knight: 1.2.5 less: 4.1.2 less-loader: 7.3.0_less@4.1.2 sass-resources-loader: 2.2.4 @@ -600,8 +600,8 @@ packages: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} dev: true - /black-knight/1.2.2: - resolution: {integrity: sha512-M6uD+umcXAeB916Fnr1IIu+j6HtKwv20h3h2pWgdqZsy2pFIa5LpoOZbnZy41MBHondKKtyLUo4FhFjI/tYdqA==} + /black-knight/1.2.5: + resolution: {integrity: sha512-uiTIc+WKAlEw3BT7FaMqNIZz2D+/6txm3IT5+IMqOYLLQxhV4rQls2rznQURB+Ih0GeqrhYwpjIZ6lUIXFgr4w==} dev: true /brace-expansion/1.1.11: diff --git a/src/main.js b/src/main.js index e855a40..62d465c 100644 --- a/src/main.js +++ b/src/main.js @@ -3,11 +3,11 @@ import App from './App.vue' import router from './router' import store from '@/store' import regComponents from '@/components' -import 'black-knight/lib/config/custom' +import {defineObj} from 'black-knight/lib/config/custom' import ElementPlus from 'element-plus' import "element-plus/dist/index.css" console.log(import.meta.env,'--------------import------') - +console.log(defineObj,'----defineObj---') import "@/assets/style/index.less" var app=createApp(App) diff --git a/src/view/home.vue b/src/view/home.vue index 4a99794..c5d8a3b 100644 --- a/src/view/home.vue +++ b/src/view/home.vue @@ -15,9 +15,13 @@