feature:url调整让上传文件支持/模式
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { formatTimeToStr } from '@/utils/date'
|
||||
import { getDict } from '@/utils/dictionary'
|
||||
import {ref} from "vue";
|
||||
|
||||
export const formatBoolean = (bool) => {
|
||||
if (bool !== null) {
|
||||
@@ -115,3 +116,10 @@ export const setBodyPrimaryColor = ( primaryColor, darkMode ) =>{
|
||||
}
|
||||
document.documentElement.style.setProperty(`--el-menu-hover-bg-color`, addOpacityToColor(primaryColor, 0.2))
|
||||
}
|
||||
|
||||
|
||||
const baseUrl = ref(import.meta.env.VITE_BASE_API)
|
||||
|
||||
export const getBaseUrl = () => {
|
||||
return baseUrl.value === "/" ? "" : baseUrl.value + "/"
|
||||
}
|
||||
Reference in New Issue
Block a user