feat: 更新代理地址
自动部署 / build (push) Successful in 1m29s
Details
自动部署 / build (push) Successful in 1m29s
Details
parent
8e80683427
commit
f3423943e6
4
.env
4
.env
|
|
@ -6,7 +6,7 @@ VITE_TITLE = 绝弹项目管理
|
||||||
# 网站副标题
|
# 网站副标题
|
||||||
VITE_SUBTITLE = 快速开发web应用的模板工具
|
VITE_SUBTITLE = 快速开发web应用的模板工具
|
||||||
# 接口前缀 说明:参见 axios 的 baseURL
|
# 接口前缀 说明:参见 axios 的 baseURL
|
||||||
VITE_API = http://127.0.0.1:3030/
|
VITE_API = /
|
||||||
|
|
||||||
# =====================================================================================
|
# =====================================================================================
|
||||||
# 开发设置
|
# 开发设置
|
||||||
|
|
@ -16,7 +16,7 @@ VITE_HOST = 0.0.0.0
|
||||||
# 端口
|
# 端口
|
||||||
VITE_PORT = 3020
|
VITE_PORT = 3020
|
||||||
# 代理地址
|
# 代理地址
|
||||||
VITE_PROXY = /api
|
VITE_PROXY = http://127.0.0.1:3030/
|
||||||
# API文档 说明:需返回符合 OPENAPI 规范的json内容
|
# API文档 说明:需返回符合 OPENAPI 规范的json内容
|
||||||
VITE_OPENAPI = http://127.0.0.1:3030/openapi.json
|
VITE_OPENAPI = http://127.0.0.1:3030/openapi.json
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -194,6 +194,7 @@ export const Table = defineComponent({
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
empty: () => <AniEmpty />,
|
empty: () => <AniEmpty />,
|
||||||
|
...this.$slots,
|
||||||
}}
|
}}
|
||||||
</BaseTable>
|
</BaseTable>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import Vue from "@vitejs/plugin-vue";
|
import Vue from "@vitejs/plugin-vue";
|
||||||
import VueJsx from "@vitejs/plugin-vue-jsx";
|
import VueJsx from "@vitejs/plugin-vue-jsx";
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
|
import { visualizer } from "rollup-plugin-visualizer";
|
||||||
import { presetIcons, presetUno } from "unocss";
|
import { presetIcons, presetUno } from "unocss";
|
||||||
import Unocss from "unocss/vite";
|
import Unocss from "unocss/vite";
|
||||||
import AutoImport from "unplugin-auto-import/vite";
|
import AutoImport from "unplugin-auto-import/vite";
|
||||||
|
|
@ -12,7 +13,6 @@ import { arcoToUnoColor } from "./scripts/vite/color";
|
||||||
import iconFile from "./scripts/vite/file.json";
|
import iconFile from "./scripts/vite/file.json";
|
||||||
import iconFmt from "./scripts/vite/fmt.json";
|
import iconFmt from "./scripts/vite/fmt.json";
|
||||||
import plugin from "./scripts/vite/plugin";
|
import plugin from "./scripts/vite/plugin";
|
||||||
import { visualizer } from "rollup-plugin-visualizer";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* vite 配置
|
* vite 配置
|
||||||
|
|
@ -125,8 +125,11 @@ export default defineConfig(({ mode }) => {
|
||||||
host,
|
host,
|
||||||
port,
|
port,
|
||||||
proxy: {
|
proxy: {
|
||||||
|
"/api": {
|
||||||
|
target: env.VITE_PROXY,
|
||||||
|
},
|
||||||
"/upload": {
|
"/upload": {
|
||||||
target: "http://127.0.0.1:3030",
|
target: env.VITE_PROXY,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue