更新
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const URL = "http://tmd.xscmmidi.site";
|
||||
export const URL = "http://md.xscmmidi.site";
|
||||
// http://md.xscmmidi.site 正式
|
||||
// http://tmd.xscmmidi.site 测试
|
||||
// 声网appId 在这里换
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { getPluginsList } from "./build/plugins";
|
||||
import { include, exclude } from "./build/optimize";
|
||||
import { type UserConfigExport, type ConfigEnv, loadEnv } from "vite";
|
||||
import { URL } from "@/utils/http/config";
|
||||
import {
|
||||
root,
|
||||
alias,
|
||||
@@ -25,11 +26,9 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
||||
host: "0.0.0.0",
|
||||
// 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy
|
||||
proxy: {
|
||||
// tmd.xscmmidi.site 测试API
|
||||
// md.xscmmidi.site 正式API
|
||||
"/adminapi": {
|
||||
// 这里填写后端地址
|
||||
target: "http://tmd.xscmmidi.site",
|
||||
target: URL,
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user