chore: 修改上传地址的接口和图片的展示地址拼接

This commit is contained in:
奔跑的面条
2022-11-01 21:17:24 +08:00
parent 8ab64846d4
commit f9ed391c81
4 changed files with 10 additions and 18 deletions
+2 -2
View File
@@ -1,14 +1,14 @@
import { useSystemStore } from '@/store/modules/systemStore/systemStore'
import { SystemStoreEnum } from '@/store/modules/systemStore/systemStore.d'
import { ResultEnum } from '@/enums/httpEnum'
import { ossUrlApi } from '@/api/path/'
import { ossUrlApi } from '@/api/path'
// * 初始化
export const useSystemInit = async () => {
const systemStore = useSystemStore()
// 获取 OSS 信息
// 获取 OSS 信息的 url 地址,用来拼接展示图片的地址
const getOssUrl = async () => {
const res = await ossUrlApi({}) as unknown as MyResponseType
if (res.code === ResultEnum.SUCCESS) {