fix(mobile): show real assignments on today page

This commit is contained in:
2026-07-09 13:24:19 +08:00
parent 03d9c93ea4
commit dd13936ca9
4 changed files with 62 additions and 16 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ import uniPlugin from '@dcloudio/vite-plugin-uni';
const uni = typeof uniPlugin === 'function' ? uniPlugin : uniPlugin.default;
const devPort = Number(process.env.PORT) || 5175;
const devHost = process.env.HOST || '0.0.0.0';
const proxyTarget = process.env.VITE_PROXY_TARGET || 'https://wygj-api.localhost';
export default defineConfig({
plugins: [uni()],
@@ -13,8 +14,9 @@ export default defineConfig({
strictPort: true,
proxy: {
'/dev-api': {
target: 'http://127.0.0.1:8080',
target: proxyTarget,
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/dev-api/, '')
}
}