first commit
This commit is contained in:
36
config/config.dev.js
Normal file
36
config/config.dev.js
Normal 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
41
config/config.js
Normal 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
11
config/defaultConfig.js
Normal 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
9
config/defaultTheme.js
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
export default {
|
||||
token: {
|
||||
//主题色
|
||||
colorPrimary: '#13A8A8',
|
||||
colorBgBase: '#F4F4F4'
|
||||
}
|
||||
}
|
||||
44
config/routes.js
Normal file
44
config/routes.js
Normal 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",
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user