增加用户中心、用户注册登录
This commit is contained in:
@@ -77,7 +77,7 @@ export default defineConfig({
|
||||
* @name layout 插件
|
||||
* @doc https://umijs.org/docs/max/layout-menu
|
||||
*/
|
||||
title: 'Ant Design Pro',
|
||||
title: 'Timeline',
|
||||
layout: {
|
||||
locale: true,
|
||||
...defaultSettings,
|
||||
|
||||
@@ -9,13 +9,15 @@
|
||||
*
|
||||
* @doc https://umijs.org/docs/guides/proxy
|
||||
*/
|
||||
const basePath = 'http://59.80.22.43:33333'
|
||||
// const basePath = 'http://localhost:30000'
|
||||
export default {
|
||||
// 如果需要自定义本地开发服务器 请取消注释按需调整
|
||||
dev: {
|
||||
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
'/story/': {
|
||||
// 要代理的地址
|
||||
target: 'http://localhost:30001',
|
||||
target: basePath,
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
@@ -23,12 +25,20 @@ export default {
|
||||
},
|
||||
'/file/': {
|
||||
// 要代理的地址
|
||||
target: 'http://localhost:30002',
|
||||
target: basePath,
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/file': '/file' },
|
||||
},
|
||||
'/user-api/': {
|
||||
// 要代理的地址
|
||||
target: basePath,
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/user-api': '/user' },
|
||||
},
|
||||
'/api/': {
|
||||
target: 'https://proapi.azurewebsites.net',
|
||||
changeOrigin: true,
|
||||
|
||||
@@ -43,7 +43,7 @@ export default [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
/* {
|
||||
path: '/dashboard',
|
||||
name: 'dashboard',
|
||||
icon: 'dashboard',
|
||||
@@ -71,7 +71,7 @@ export default [
|
||||
component: './dashboard/workplace',
|
||||
},
|
||||
],
|
||||
},
|
||||
}, */
|
||||
{
|
||||
name: '故事',
|
||||
icon: 'smile',
|
||||
@@ -89,6 +89,22 @@ export default [
|
||||
component: './story/detail',
|
||||
},
|
||||
{
|
||||
name: '用户中心',
|
||||
icon: 'user',
|
||||
path: '/account',
|
||||
component: './account/center',
|
||||
},
|
||||
{
|
||||
name: '用户设置',
|
||||
icon: 'setting',
|
||||
path: '/account/settings',
|
||||
component: './account/settings',
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
redirect: './account/center',
|
||||
},
|
||||
/* {
|
||||
path: '/',
|
||||
name: 'other',
|
||||
routes: [
|
||||
@@ -229,5 +245,5 @@ export default [
|
||||
path: '/user',
|
||||
},
|
||||
]
|
||||
}
|
||||
} */
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user