From a5f06b64df110baa5b16f1b6c58ff9fe334a825a Mon Sep 17 00:00:00 2001 From: gaoxq <376340421@qq.com> Date: Thu, 19 Mar 2026 11:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-vue/package.json | 5 ++ web-vue/pnpm-lock.yaml | 168 +++++++++++++++++++++++++++++++++++ web-vue/pnpm-workspace.yaml | 10 ++- web-vue/web/.env | 4 +- web-vue/web/.env.development | 3 +- web-vue/web/src/main.ts | 29 +++--- 6 files changed, 202 insertions(+), 17 deletions(-) diff --git a/web-vue/package.json b/web-vue/package.json index 01faa99..820b3fd 100644 --- a/web-vue/package.json +++ b/web-vue/package.json @@ -27,6 +27,7 @@ "dependencies": { "@ant-design/colors": "8.0.0", "@ant-design/icons-vue": "7.0.1", + "@element-plus/icons-vue": "^2.3.2", "@jeesite/assets": "workspace:*", "@jeesite/cms": "workspace:*", "@jeesite/core": "workspace:*", @@ -39,8 +40,12 @@ "ant-design-vue": "4.2.6", "axios": "1.13.2", "dayjs": "1.11.19", + "echarts": "6.0.0", + "element-plus": "^2.13.5", "lodash-es": "4.17.21", + "v-scale-screen": "^2.3.0", "vue": "3.5.25", + "vue-draggable-plus": "^0.6.1", "vue-eslint-parser": "10.2.0", "vue-router": "4.6.3", "vue-tsc": "3.1.8", diff --git a/web-vue/pnpm-lock.yaml b/web-vue/pnpm-lock.yaml index 3f9bfc7..d614230 100644 --- a/web-vue/pnpm-lock.yaml +++ b/web-vue/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@ant-design/icons-vue': specifier: 7.0.1 version: 7.0.1(vue@3.5.25(typescript@5.9.3)) + '@element-plus/icons-vue': + specifier: ^2.3.2 + version: 2.3.2(vue@3.5.25(typescript@5.9.3)) '@jeesite/assets': specifier: workspace:* version: link:packages/assets @@ -53,12 +56,24 @@ importers: dayjs: specifier: 1.11.19 version: 1.11.19 + echarts: + specifier: 6.0.0 + version: 6.0.0 + element-plus: + specifier: ^2.13.5 + version: 2.13.5(typescript@5.9.3)(vue@3.5.25(typescript@5.9.3)) lodash-es: specifier: 4.17.21 version: 4.17.21 + v-scale-screen: + specifier: ^2.3.0 + version: 2.3.0(vue@3.5.25(typescript@5.9.3)) vue: specifier: 3.5.25 version: 3.5.25(typescript@5.9.3) + vue-draggable-plus: + specifier: ^0.6.1 + version: 0.6.1(@types/sortablejs@1.15.9) vue-eslint-parser: specifier: 10.2.0 version: 10.2.0(eslint@9.39.1(jiti@2.6.1)) @@ -1088,9 +1103,18 @@ packages: resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==} engines: {node: '>=10'} + '@ctrl/tinycolor@4.2.0': + resolution: {integrity: sha512-kzyuwOAQnXJNLS9PSyrk0CWk35nWJW/zl/6KvnTBMFK65gm7U1/Z5BqjxeapjZCIhQcM/DsrEmcbRwDyXyXK4A==} + engines: {node: '>=14'} + '@dual-bundle/import-meta-resolve@4.2.1': resolution: {integrity: sha512-id+7YRUgoUX6CgV0DtuhirQWodeeA7Lf4i2x71JS/vtA5pRb/hIGWlw+G6MeXvsM+MXrz0VAydTGElX1rAfgPg==} + '@element-plus/icons-vue@2.3.2': + resolution: {integrity: sha512-OzIuTaIfC8QXEPmJvB4Y4kw34rSXdCJzxcD1kFStBvr8bK6X1zQAYDo0CNMjojnfTqRQCJ0I7prlErcoRiET2A==} + peerDependencies: + vue: ^3.2.0 + '@emotion/hash@0.9.2': resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==} @@ -1744,6 +1768,15 @@ packages: resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@floating-ui/core@1.7.5': + resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==} + + '@floating-ui/dom@1.7.6': + resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==} + + '@floating-ui/utils@0.2.11': + resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==} + '@hapi/bourne@3.0.0': resolution: {integrity: sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w==} @@ -2138,6 +2171,9 @@ packages: peerDependencies: stylelint: ^16.22.0 + '@sxzz/popperjs-es@2.11.8': + resolution: {integrity: sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==} + '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} @@ -2288,6 +2324,9 @@ packages: '@types/trusted-types@2.0.7': resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + '@types/web-bluetooth@0.0.20': + resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} + '@types/web-bluetooth@0.0.21': resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} @@ -2587,14 +2626,23 @@ packages: '@vue/shared@3.5.25': resolution: {integrity: sha512-AbOPdQQnAnzs58H2FrrDxYj/TJfmeS2jdfEEhgiKINy+bnOANmVizIEgq1r+C5zsbs6l1CCQxtcj71rwNQ4jWg==} + '@vueuse/core@12.0.0': + resolution: {integrity: sha512-C12RukhXiJCbx4MGhjmd/gH52TjJsc3G0E0kQj/kb19H3Nt6n1CA4DRWuTdWWcaFRdlTe0npWDS942mvacvNBw==} + '@vueuse/core@14.1.0': resolution: {integrity: sha512-rgBinKs07hAYyPF834mDTigH7BtPqvZ3Pryuzt1SD/lg5wEcWqvwzXXYGEDb2/cP0Sj5zSvHl3WkmMELr5kfWw==} peerDependencies: vue: ^3.5.0 + '@vueuse/metadata@12.0.0': + resolution: {integrity: sha512-Yzimd1D3sjxTDOlF05HekU5aSGdKjxhuhRFHA7gDWLn57PRbBIh+SF5NmjhJ0WRgF3my7T8LBucyxdFJjIfRJQ==} + '@vueuse/metadata@14.1.0': resolution: {integrity: sha512-7hK4g015rWn2PhKcZ99NyT+ZD9sbwm7SGvp7k+k+rKGWnLjS/oQozoIZzWfCewSUeBmnJkIb+CNr7Zc/EyRnnA==} + '@vueuse/shared@12.0.0': + resolution: {integrity: sha512-3i6qtcq2PIio5i/vVYidkkcgvmTjCqrf26u+Fd4LhnbBmIT6FN8y6q/GJERp8lfcB9zVEfjdV0Br0443qZuJpw==} + '@vueuse/shared@14.1.0': resolution: {integrity: sha512-EcKxtYvn6gx1F8z9J5/rsg3+lTQnvOruQd8fUecW99DCK04BkWD7z5KQ/wTAx+DazyoEE9dJt/zV8OIEQbM6kw==} peerDependencies: @@ -3419,6 +3467,11 @@ packages: electron-to-chromium@1.5.267: resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==} + element-plus@2.13.5: + resolution: {integrity: sha512-dmY24fhSREfZN/PuUt0YZigMso7wWzl+B5o+YKNN15kQIn/0hzamsPU+ebj9SES0IbUqsLX1wkrzYmzU8VrVOQ==} + peerDependencies: + vue: ^3.3.0 + emitter-listener@1.1.2: resolution: {integrity: sha512-Bt1sBAGFHY9DKY+4/2cV6izcKJUf5T7/gkdmkxzX/qv9CcGH8xSwVRW5mtX03SWJtRTWSOpzCuWN9rBFYZepZQ==} @@ -3837,6 +3890,7 @@ packages: glob@10.5.0: resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@13.0.0: @@ -4219,6 +4273,7 @@ packages: koa-router@12.0.1: resolution: {integrity: sha512-gaDdj3GtzoLoeosacd50kBBTnnh3B9AYxDThQUo4sfUyXdOhY6ku1qyZKW88tQCRgc3Sw6ChXYXWZwwgjOxE0w==} engines: {node: '>= 12'} + deprecated: 'Please use @koa/router instead, starting from v9! ' koa-send@5.0.1: resolution: {integrity: sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==} @@ -4284,6 +4339,16 @@ packages: lodash-es@4.17.21: resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + lodash-es@4.17.23: + resolution: {integrity: sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==} + + lodash-unified@1.0.3: + resolution: {integrity: sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==} + peerDependencies: + '@types/lodash-es': '*' + lodash: '*' + lodash-es: '*' + lodash.camelcase@4.3.0: resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} @@ -4324,6 +4389,9 @@ packages: lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + lodash@4.17.23: + resolution: {integrity: sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==} + log-driver@1.2.7: resolution: {integrity: sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==} engines: {node: '>=0.8.6'} @@ -4398,6 +4466,9 @@ packages: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} + memoize-one@6.0.0: + resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==} + meow@13.2.0: resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} engines: {node: '>=18'} @@ -4574,6 +4645,9 @@ packages: resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} engines: {node: '>=0.10.0'} + normalize-wheel-es@1.2.0: + resolution: {integrity: sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==} + npm-check-updates@19.1.2: resolution: {integrity: sha512-FNeFCVgPOj0fz89hOpGtxP2rnnRHR7hD2E8qNU8SMWfkyDZXA/xpgjsL3UMLSo3F/K13QvJDnbxPngulNDDo/g==} engines: {node: '>=20.0.0', npm: '>=8.12.1'} @@ -5858,6 +5932,11 @@ packages: deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. hasBin: true + v-scale-screen@2.3.0: + resolution: {integrity: sha512-SoYxvdZ9qi4Ne8BDDflIRU0IfX/qgmtZ0pPaZ4rGB+/Wr0GBYQbjRnoHF+uq1JqqUsBtiyjUnAkrG6xYTMXFpA==} + peerDependencies: + vue: ^3.2.37 + v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} @@ -5995,6 +6074,15 @@ packages: '@vue/composition-api': optional: true + vue-draggable-plus@0.6.1: + resolution: {integrity: sha512-FbtQ/fuoixiOfTZzG3yoPl4JAo9HJXRHmBQZFB9x2NYCh6pq0TomHf7g5MUmpaDYv+LU2n6BPq2YN9sBO+FbIg==} + peerDependencies: + '@types/sortablejs': ^1.15.0 + '@vue/composition-api': '*' + peerDependenciesMeta: + '@vue/composition-api': + optional: true + vue-eslint-parser@10.2.0: resolution: {integrity: sha512-CydUvFOQKD928UzZhTp4pr2vWz1L+H99t7Pkln2QSPdvmURT0MoC4wUccfCnuEaihNsu9aYYyk+bep8rlfkUXw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -6963,8 +7051,14 @@ snapshots: '@ctrl/tinycolor@3.6.1': {} + '@ctrl/tinycolor@4.2.0': {} + '@dual-bundle/import-meta-resolve@4.2.1': {} + '@element-plus/icons-vue@2.3.2(vue@3.5.25(typescript@5.9.3))': + dependencies: + vue: 3.5.25(typescript@5.9.3) + '@emotion/hash@0.9.2': {} '@emotion/unitless@0.8.1': {} @@ -7320,6 +7414,17 @@ snapshots: '@eslint/core': 0.17.0 levn: 0.4.1 + '@floating-ui/core@1.7.5': + dependencies: + '@floating-ui/utils': 0.2.11 + + '@floating-ui/dom@1.7.6': + dependencies: + '@floating-ui/core': 1.7.5 + '@floating-ui/utils': 0.2.11 + + '@floating-ui/utils@0.2.11': {} + '@hapi/bourne@3.0.0': {} '@humanfs/core@0.19.1': {} @@ -7832,6 +7937,8 @@ snapshots: style-search: 0.1.0 stylelint: 16.26.1(typescript@5.9.3) + '@sxzz/popperjs-es@2.11.8': {} + '@tootallnate/quickjs-emscripten@0.23.0': {} '@transloadit/prettier-bytes@0.0.7': {} @@ -8007,6 +8114,8 @@ snapshots: '@types/trusted-types@2.0.7': optional: true + '@types/web-bluetooth@0.0.20': {} + '@types/web-bluetooth@0.0.21': {} '@typescript-eslint/eslint-plugin@8.49.0(@typescript-eslint/parser@8.49.0(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.1(jiti@2.6.1))(typescript@5.9.3)': @@ -8500,6 +8609,15 @@ snapshots: '@vue/shared@3.5.25': {} + '@vueuse/core@12.0.0(typescript@5.9.3)': + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 12.0.0 + '@vueuse/shared': 12.0.0(typescript@5.9.3) + vue: 3.5.25(typescript@5.9.3) + transitivePeerDependencies: + - typescript + '@vueuse/core@14.1.0(vue@3.5.25(typescript@5.9.3))': dependencies: '@types/web-bluetooth': 0.0.21 @@ -8507,8 +8625,16 @@ snapshots: '@vueuse/shared': 14.1.0(vue@3.5.25(typescript@5.9.3)) vue: 3.5.25(typescript@5.9.3) + '@vueuse/metadata@12.0.0': {} + '@vueuse/metadata@14.1.0': {} + '@vueuse/shared@12.0.0(typescript@5.9.3)': + dependencies: + vue: 3.5.25(typescript@5.9.3) + transitivePeerDependencies: + - typescript + '@vueuse/shared@14.1.0(vue@3.5.25(typescript@5.9.3))': dependencies: vue: 3.5.25(typescript@5.9.3) @@ -9340,6 +9466,26 @@ snapshots: electron-to-chromium@1.5.267: {} + element-plus@2.13.5(typescript@5.9.3)(vue@3.5.25(typescript@5.9.3)): + dependencies: + '@ctrl/tinycolor': 4.2.0 + '@element-plus/icons-vue': 2.3.2(vue@3.5.25(typescript@5.9.3)) + '@floating-ui/dom': 1.7.6 + '@popperjs/core': '@sxzz/popperjs-es@2.11.8' + '@types/lodash': 4.17.21 + '@types/lodash-es': 4.17.12 + '@vueuse/core': 12.0.0(typescript@5.9.3) + async-validator: 4.2.5 + dayjs: 1.11.19 + lodash: 4.17.23 + lodash-es: 4.17.23 + lodash-unified: 1.0.3(@types/lodash-es@4.17.12)(lodash-es@4.17.23)(lodash@4.17.23) + memoize-one: 6.0.0 + normalize-wheel-es: 1.2.0 + vue: 3.5.25(typescript@5.9.3) + transitivePeerDependencies: + - typescript + emitter-listener@1.1.2: dependencies: shimmer: 1.2.1 @@ -10361,6 +10507,14 @@ snapshots: lodash-es@4.17.21: {} + lodash-es@4.17.23: {} + + lodash-unified@1.0.3(@types/lodash-es@4.17.12)(lodash-es@4.17.23)(lodash@4.17.23): + dependencies: + '@types/lodash-es': 4.17.12 + lodash: 4.17.23 + lodash-es: 4.17.23 + lodash.camelcase@4.3.0: {} lodash.clonedeep@4.5.0: {} @@ -10387,6 +10541,8 @@ snapshots: lodash@4.17.21: {} + lodash@4.17.23: {} + log-driver@1.2.7: {} loose-envify@1.4.0: @@ -10452,6 +10608,8 @@ snapshots: media-typer@0.3.0: {} + memoize-one@6.0.0: {} + meow@13.2.0: {} merge-stream@2.0.0: {} @@ -10613,6 +10771,8 @@ snapshots: normalize-range@0.1.2: {} + normalize-wheel-es@1.2.0: {} + npm-check-updates@19.1.2: {} npm-run-path@4.0.1: @@ -11955,6 +12115,10 @@ snapshots: uuid@3.4.0: {} + v-scale-screen@2.3.0(vue@3.5.25(typescript@5.9.3)): + dependencies: + vue: 3.5.25(typescript@5.9.3) + v8-compile-cache-lib@3.0.1: {} vary@1.1.2: {} @@ -12102,6 +12266,10 @@ snapshots: dependencies: vue: 3.5.25(typescript@5.9.3) + vue-draggable-plus@0.6.1(@types/sortablejs@1.15.9): + dependencies: + '@types/sortablejs': 1.15.9 + vue-eslint-parser@10.2.0(eslint@9.39.1(jiti@2.6.1)): dependencies: debug: 4.4.3(supports-color@5.5.0) diff --git a/web-vue/pnpm-workspace.yaml b/web-vue/pnpm-workspace.yaml index 65f8237..9968559 100644 --- a/web-vue/pnpm-workspace.yaml +++ b/web-vue/pnpm-workspace.yaml @@ -1,3 +1,9 @@ packages: - - 'packages/**' - - 'web' + - packages/** + - web + +onlyBuiltDependencies: + - core-js + - es5-ext + - esbuild + - vue-demi diff --git a/web-vue/web/.env b/web-vue/web/.env index 3497a9d..3298eba 100644 --- a/web-vue/web/.env +++ b/web-vue/web/.env @@ -2,7 +2,7 @@ VITE_PORT = 3100 # 软件标题 -VITE_GLOB_APP_TITLE = JeeSite 快速开发平台 +VITE_GLOB_APP_TITLE = 数据管理系统 # 软件英文名(小写、全英文、无空格、无特殊字符) -VITE_GLOB_APP_SHORT_NAME = jeesite +VITE_GLOB_APP_SHORT_NAME = myWorker diff --git a/web-vue/web/.env.development b/web-vue/web/.env.development index b9f8073..12da2d0 100644 --- a/web-vue/web/.env.development +++ b/web-vue/web/.env.development @@ -5,13 +5,12 @@ VITE_PUBLIC_PATH = / VITE_ROUTE_WEB_HISTORY = true # 代理设置,可配置多个,不能换行,格式:[访问接口的根路径, 代理地址, 是否保持Host头] -# VITE_PROXY = [["/js","https://vue.jeesite.com/js",true]] VITE_PROXY = [["/js","http://127.0.0.1:8980/js",false]] # 是否删除 console 调试信息 VITE_DROP_CONSOLE = false -# 访问接口的根路径(例如:https://vue.jeesite.com)建议为空 +# 访问接口的根路径建议为空 VITE_GLOB_API_URL = # 访问接口的前缀,在根路径之后 diff --git a/web-vue/web/src/main.ts b/web-vue/web/src/main.ts index c0e32e5..41cd2c8 100644 --- a/web-vue/web/src/main.ts +++ b/web-vue/web/src/main.ts @@ -20,8 +20,26 @@ import { setupRouterGuard } from '@jeesite/core/router/guard'; import { setupStore } from '@jeesite/core/store'; import { setupDForm } from '@jeesite/dfm'; +import ElementPlus from 'element-plus' +import * as ElementPlusIconsVue from '@element-plus/icons-vue' +import VScaleScreen from 'v-scale-screen' +import * as echarts from 'echarts' + +import zhCn from 'element-plus/es/locale/lang/zh-cn' + async function bootstrap() { const app = createApp(App); + + app.use(VScaleScreen) + app.config.globalProperties.$echarts = echarts + + app.use(ElementPlus, { + locale: zhCn, + }) + + for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component) + } // Configure store setupStore(app); @@ -56,15 +74,4 @@ async function bootstrap() { app.mount('#app'); } - -// 仅开发模式显示 -if (!isDevMode()) { - console.log( - '%c JeeSite %c快速开发平台 \n%c 用心去做我们的快速开发平台,用心去帮助我们的客户!让您用着省心的平台。\n 您的一个关注,就是对我们最大的支持: https://gitee.com/thinkgem/jeesite-vue (请点 star 收藏我们)\n 免费 QQ 技术交流群: 127515876、209330483、223507718、709534275、730390092、1373527、183903863(外包) \n 免费 微信 技术交流群: http://s.jeesite.com 如果加不上,可添加 微信 jeesitex 邀请您进群。%c\n ', - 'font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:39px;color:#0f87e8;-webkit-text-fill-color:#0f87e8;-webkit-text-stroke:1px #0f87e8;', - 'font-size:24px;color:#aaa;', - 'font-size:14px;color:#888;', - 'font-size:12px;', - ); -} bootstrap().then();