增加用户中心、用户注册登录

This commit is contained in:
jiangh277
2025-12-26 15:12:49 +08:00
parent 1eb1dafe1e
commit 07e011febd
43 changed files with 2006 additions and 611 deletions

View File

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