first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:25:01 +08:00
commit 23dc139a31
293 changed files with 52615 additions and 0 deletions

36
config/config.dev.js Normal file
View File

@@ -0,0 +1,36 @@
import { defineConfig } from "@umijs/max";
import defaultConfig from './defaultConfig';
export default defineConfig({
antd: {
theme: {
},
},
access: {},
model: {},
initialState: {},
request: {},
layout: {
...defaultConfig
},
npmClient: "pnpm",
tailwindcss: {},
define: {
'process.env': {
// API_URL: "http://192.168.0.13:9502",
API_URL: "https://shopapi.houyi2023.cn",
// API_URL: "http://shopapi.houyi2023.cn",
WS_URL: "ws://lv.com",
STATIC_URL: "http://lv.com",
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
}
},
// proxy: {
// '/admin': {
// target: 'http://shopapi.houyi2023.cn',
// changeOrigin: true,
// },
// },
});

41
config/config.js Normal file
View File

@@ -0,0 +1,41 @@
import { defineConfig } from "@umijs/max";
import defaultConfig from "./defaultConfig";
export default defineConfig({
hash: true,
antd: {
theme: {},
},
access: {},
model: {},
initialState: {},
request: {},
layout: {
...defaultConfig,
},
npmClient: "pnpm",
define: {
"process.env": {
API_URL: "https://shopapi.houyi2023.cn",
WS_URL: "ws://shopapi.houyi2023.com",
STATIC_URL: "https://shopapi.houyi2023.com",
WEMAP_KEY: "ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X",
},
},
headScripts: [
{
src: `https://map.qq.com/api/gljs?v=1.exp&key=ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X`,
async: true,
}, //在这里引入
],
// proxy: {
// '/api': {
// target: 'http://shopapi.houyi2023.cn',
// changeOrigin: true,
// pathRewrite: { '^/api': '' },
// },
// },
tailwindcss: {},
});

11
config/defaultConfig.js Normal file
View File

@@ -0,0 +1,11 @@
const defaultConfig = {
title: '羿充电',
logo: false,
// logo: 'https://xingdong-app.oss-cn-beijing.aliyuncs.com/xdlogo.jpg',
layout: 'mix',
//siderWidth: '210'
}
export default defaultConfig;

9
config/defaultTheme.js Normal file
View File

@@ -0,0 +1,9 @@
export default {
token: {
//主题色
colorPrimary: '#13A8A8',
colorBgBase: '#F4F4F4'
}
}

44
config/routes.js Normal file
View File

@@ -0,0 +1,44 @@
export default [
{
path: '/login',
component: './login',
// 不展示顶栏
headerRender: false,
// 不展示页脚
footerRender: false,
// 不展示菜单
menuRender: false,
// 不展示菜单顶栏
menuHeaderRender: false,
// 隐藏子菜单
hideChildrenInMenu: true,
// 隐藏自己和子菜单
hideInMenu: true,
// 在面包屑中隐藏
hideInBreadcrumb: true,
},
{
path: '/showdata',
component: './showdata',
// 不展示顶栏
headerRender: false,
// 不展示页脚
footerRender: false,
// 不展示菜单
menuRender: false,
// 不展示菜单顶栏
menuHeaderRender: false,
// 隐藏子菜单
hideChildrenInMenu: true,
// 隐藏自己和子菜单
hideInMenu: true,
// 在面包屑中隐藏
hideInBreadcrumb: true,
},
{
name: "首页",
path: "/",
icon: 'icon-barchart',
component: "./index",
}
];