From 776493eace3726c908ca15373836daa739bf54ca Mon Sep 17 00:00:00 2001 From: loser <1711788888@qq.com> Date: Tue, 10 Jan 2023 12:08:57 +0800 Subject: [PATCH] fix bug --- .gitignore | 1 + openDocument.js | 23 ----------------------- package.json | 4 ++-- src/core/gin-vue-admin.js | 12 +----------- 4 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 openDocument.js diff --git a/.gitignore b/.gitignore index a19f004..3bec83e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ docs/_book # TODO: where does this rule come from? test/ +node_modules diff --git a/openDocument.js b/openDocument.js deleted file mode 100644 index 2d52541..0000000 --- a/openDocument.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - 商用代码公司自用产品无需授权 - 若作为代码出售的产品(任何涉及代码交付第三方作为后续开发)必须保留此脚本 - 或标注原作者信息 - 否则将依法维权 -*/ - -var child_process = require('child_process') - -var url = 'https://www.gin-vue-admin.com' -var cmd = '' -console.log(process.platform) -switch (process.platform) { - case 'win32': - cmd = 'start' - child_process.exec(cmd + ' ' + url) - break - - case 'darwin': - cmd = 'open' - child_process.exec(cmd + ' ' + url) - break -} diff --git a/package.json b/package.json index b90138c..689df17 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.5.5", "private": true, "scripts": { - "serve": "node openDocument.js && vite --host --mode development", + "serve": "vite --host --mode development", "build": "vite build --mode production", "limit-build": "npm install increase-memory-limit-fixbug cross-env -g && npm run fix-memory-limit && node ./limit && npm run build", "preview": "vite preview", @@ -49,4 +49,4 @@ "vite-plugin-banner": "^0.1.3", "vite-plugin-importer": "^0.2.5" } -} \ No newline at end of file +} diff --git a/src/core/gin-vue-admin.js b/src/core/gin-vue-admin.js index 1b07731..6759d48 100644 --- a/src/core/gin-vue-admin.js +++ b/src/core/gin-vue-admin.js @@ -8,15 +8,5 @@ import { register } from './global' export default { install: (app) => { register(app) - console.log(` - 欢迎使用 Gin-Vue-Admin - 当前版本:v2.5.5 - 加群方式:微信:shouzi_1994 QQ群:622360840 - GVA讨论社区:https://support.qq.com/products/371961 - 插件市场:https://plugin.gin-vue-admin.com - 默认自动化文档地址:http://127.0.0.1:${import.meta.env.VITE_SERVER_PORT}/swagger/index.html - 默认前端文件运行地址:http://127.0.0.1:${import.meta.env.VITE_CLI_PORT} - 如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/coffee/index.html - `) } -} \ No newline at end of file +}