项目初始化

This commit is contained in:
2026-03-19 11:49:56 +08:00
parent 6b90b50429
commit a5f06b64df
6 changed files with 202 additions and 17 deletions

View File

@@ -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

View File

@@ -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 =
# 访问接口的前缀,在根路径之后

View File

@@ -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();