fix 豆瓣图片加载

This commit is contained in:
2023-07-12 14:51:00 +08:00
parent ce408dce8b
commit e8cd3f20ba
3 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import axios from "axios";
export const base = axios.create({
baseURL:"http://127.0.0.1:3050"
})
baseURL:import.meta.env.DEV ? "http://127.0.0.1:3050" : ""
})