Commit ff6ba541 by lijiabin

【需求 22051】 chore: 修改重定向域名

parent 6980fdac
......@@ -5,7 +5,7 @@ import { storeToRefs } from 'pinia'
import type { UploadFileResponseItem, ChunkCheckResponse } from './types'
// 'https://oa.yswg.com.cn:8085'
export const OA_UPLOAD_CHUNK_BASE_URL = 'https://nas1.yswg.top:8088'
const OA_UPLOAD_CHUNK_BASE_URL = 'https://nas1.yswg.top:8088'
const OA_UPLOAD_COMMON_BASE_URL = 'http://47.112.96.71:8082'
const CHUNK_UPLOAD_THRESHOLD = 10 * 1024 * 1024
const CHUNK_SIZE = 5 * 1024 * 1024
......
......@@ -385,7 +385,7 @@
import UploadVideo from '@/components/common/UploadVideo/index.vue'
import { useResetData } from '@/hooks'
import { ArticleTypeEnum, ReleaseStatusTypeEnum, SendTypeEnum, BooleanFlag } from '@/constants'
import { addOrUpdateArticle, uploadFile, getArticleDetail, OA_UPLOAD_CHUNK_BASE_URL } from '@/api'
import { addOrUpdateArticle, uploadFile, getArticleDetail } from '@/api'
import SelectTags from '@/components/common/SelectTags/index.vue'
import type { TagItemDto, AddOrUpdateVideoDto } from '@/api'
import { useVideoStore, useUserStore } from '@/stores'
......@@ -650,7 +650,7 @@ const handleFileChange = async (e: Event) => {
// 防止跨域
const parseUrl = (url: string) => {
return OA_UPLOAD_CHUNK_BASE_URL + '/oa/nfs' + new URL(url).pathname.replace('/database', '')
return 'https://vikijin.site:8088' + '/oa/nfs' + new URL(url).pathname.replace('/database', '')
}
onDeactivated(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment