From fe852477f0ec4f2e4a0bcc597781026484fd1e89 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Wed, 26 Jun 2024 10:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A6=81=E7=94=A8=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E8=80=85=E5=B7=A5=E5=85=B7=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 ++ .env.example | 2 ++ package.json | 1 + pnpm-lock.yaml | 20 +++++++++++--------- src/App.vue | 2 ++ 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.env.development b/.env.development index 43e7ee6b..f0fe384d 100755 --- a/.env.development +++ b/.env.development @@ -6,6 +6,8 @@ VITE_APP_TITLE = Fantastic-admin 基础版 VITE_APP_API_BASEURL = / # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = +# 是否禁用开发者工具,可防止被调试 +VITE_APP_DISABLE_DEVTOOL = false # 是否开启代理 VITE_OPEN_PROXY = false diff --git a/.env.example b/.env.example index 14696912..e1074280 100755 --- a/.env.example +++ b/.env.example @@ -6,6 +6,8 @@ VITE_APP_TITLE = Fantastic-admin 基础版 VITE_APP_API_BASEURL = / # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = +# 是否禁用开发者工具,可防止被调试 +VITE_APP_DISABLE_DEVTOOL = true # 是否在打包时启用 Mock VITE_BUILD_MOCK = true diff --git a/package.json b/package.json index 75506b81..b671bb9a 100755 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "bytemd": "^1.21.0", "dayjs": "^1.11.11", "defu": "^6.1.4", + "disable-devtool": "^0.3.7", "echarts": "^5.5.0", "element-plus": "^2.7.5", "eruda": "^3.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5934783e..50cbc01a 100755 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,7 +34,7 @@ importers: version: 10.11.0(vue@3.4.29(typescript@5.4.5)) '@vueuse/integrations': specifier: ^10.11.0 - version: 10.11.0(async-validator@4.2.5)(axios@1.7.2)(change-case@5.4.4)(nprogress@0.2.0)(qrcode@1.5.3)(vue@3.4.29(typescript@5.4.5)) + version: 10.11.0(async-validator@4.2.5)(axios@1.7.2)(change-case@4.1.2)(nprogress@0.2.0)(qrcode@1.5.3)(vue@3.4.29(typescript@5.4.5)) animate.css: specifier: ^4.1.1 version: 4.1.1 @@ -50,6 +50,9 @@ importers: defu: specifier: ^6.1.4 version: 6.1.4 + disable-devtool: + specifier: ^0.3.7 + version: 0.3.7 echarts: specifier: ^5.5.0 version: 5.5.0 @@ -2894,9 +2897,6 @@ packages: change-case@4.1.2: resolution: {integrity: sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==} - change-case@5.4.4: - resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==} - character-entities-html4@2.1.0: resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} @@ -3364,6 +3364,9 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} + disable-devtool@0.3.7: + resolution: {integrity: sha512-xF5uyEpBhDuy7b4Bb88GQG4IB+2CwuQfkJK9vB/ym+85NQp/f7Wc6hnT40Jy2SkKvEf1xAKpvJUJU3LykTXxKg==} + doctrine@3.0.0: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} @@ -9804,7 +9807,7 @@ snapshots: - '@vue/composition-api' - vue - '@vueuse/integrations@10.11.0(async-validator@4.2.5)(axios@1.7.2)(change-case@5.4.4)(nprogress@0.2.0)(qrcode@1.5.3)(vue@3.4.29(typescript@5.4.5))': + '@vueuse/integrations@10.11.0(async-validator@4.2.5)(axios@1.7.2)(change-case@4.1.2)(nprogress@0.2.0)(qrcode@1.5.3)(vue@3.4.29(typescript@5.4.5))': dependencies: '@vueuse/core': 10.11.0(vue@3.4.29(typescript@5.4.5)) '@vueuse/shared': 10.11.0(vue@3.4.29(typescript@5.4.5)) @@ -9812,7 +9815,7 @@ snapshots: optionalDependencies: async-validator: 4.2.5 axios: 1.7.2 - change-case: 5.4.4 + change-case: 4.1.2 nprogress: 0.2.0 qrcode: 1.5.3 transitivePeerDependencies: @@ -10292,9 +10295,6 @@ snapshots: snake-case: 3.0.4 tslib: 2.6.2 - change-case@5.4.4: - optional: true - character-entities-html4@2.1.0: {} character-entities-legacy@1.1.4: {} @@ -10739,6 +10739,8 @@ snapshots: dependencies: path-type: 4.0.0 + disable-devtool@0.3.7: {} + doctrine@3.0.0: dependencies: esutils: 2.0.3 diff --git a/src/App.vue b/src/App.vue index 054a1123..aad89d0b 100755 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@