杂务:整理文档并收口 YumiNail 修复

This commit is contained in:
xiaowang
2026-05-21 18:43:59 +08:00
parent 3797938616
commit 9227ec6175
362 changed files with 8358 additions and 19928 deletions
+5 -2
View File
@@ -9,6 +9,7 @@ import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
const proxyTarget = (env.VITE_DEV_PROXY_TARGET || 'http://127.0.0.1:80').trim()
const proxyToCoreDirectly = /(^|:)81(\/|$)/.test(proxyTarget)
return {
plugins: [
@@ -42,11 +43,13 @@ export default defineConfig(({ mode }) => {
proxy: {
'/admin/api': {
target: proxyTarget,
changeOrigin: true
changeOrigin: true,
rewrite: path => proxyToCoreDirectly ? path.replace(/^\/admin\/api/, '/admin') : path
},
'/api': {
target: proxyTarget,
changeOrigin: true
changeOrigin: true,
rewrite: path => proxyToCoreDirectly ? path.replace(/^\/api/, '') : path
}
},
allowedHosts: [