:art:登陆页面以及用户列表操作

This commit is contained in:
coward
2024-05-18 01:11:46 +08:00
parent 0d8f6b314b
commit 316ff4a2b2
42 changed files with 1105 additions and 369 deletions

View File

@@ -24,7 +24,12 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
port: VITE_PORT,
host: "0.0.0.0",
// 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy
proxy: {},
proxy: {
"/api": {
target: "http://127.0.0.1:9703",
changeOrigin: true
}
},
// 预热文件以提前转换和缓存结果,降低启动期间的初始页面加载时长并防止转换瀑布
warmup: {
clientFiles: ["./index.html", "./src/{views,components}/*"]