fix
This commit is contained in:
parent
e7c8e47e7d
commit
a78c1e63db
@ -1,7 +1,7 @@
|
||||
import Request from "./request/index.js";
|
||||
import useToast from "@/hooks/toast/useToast.js";
|
||||
const { showMessage } = useToast();
|
||||
|
||||
console.log(1111,import.meta.env)
|
||||
const request = new Request({
|
||||
baseURL: import.meta.env.VITE_API_URL,
|
||||
timeout: 1000 * 60 * 5,
|
||||
|
@ -4,6 +4,11 @@ import uni from "@dcloudio/vite-plugin-uni";
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
server: {
|
||||
// 选项写法
|
||||
'/': {
|
||||
target: import.meta.env.VITE_API_URL, // 目标地址
|
||||
changeOrigin: true,
|
||||
},
|
||||
host: "0.0.0.0", // 这个用于启动
|
||||
port: 8093, // 指定启动端口
|
||||
open: true, //启动后是否自动打开浏览器
|
||||
|
Loading…
Reference in New Issue
Block a user