Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
2f6a0895
提交
2f6a0895
authored
4月 13, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 修改OSS上传地址
上级
edf416e8
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
8 行增加
和
4 行删除
+8
-4
base.ts
src/api/base.ts
+1
-1
AppUpload.vue
src/components/base/AppUpload.vue
+2
-1
Index.vue
src/components/tinymce/Index.vue
+1
-0
UploadImg.vue
.../course/create/components/stepOneComponents/UploadImg.vue
+2
-1
UploadImg.vue
src/modules/resource/video/components/UploadImg.vue
+2
-1
没有找到文件。
src/api/base.ts
浏览文件 @
2f6a0895
...
@@ -23,7 +23,7 @@ export function getSignature() {
...
@@ -23,7 +23,7 @@ export function getSignature() {
// 图片上传
// 图片上传
export
function
uploadFile
(
data
:
Record
<
string
,
any
>
)
{
export
function
uploadFile
(
data
:
Record
<
string
,
any
>
)
{
return
httpRequest
return
httpRequest
.
post
(
'https://webapp-pub.ezijing.com'
,
data
,
{
.
post
(
data
.
host
||
'https://webapp-pub.ezijing.com'
,
data
,
{
withCredentials
:
false
,
withCredentials
:
false
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
})
...
...
src/components/base/AppUpload.vue
浏览文件 @
2f6a0895
...
@@ -42,6 +42,7 @@ const handleBeforeUpload = async (file: any) => {
...
@@ -42,6 +42,7 @@ const handleBeforeUpload = async (file: any) => {
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
uploadData
.
value
=
{
uploadData
.
value
=
{
key
,
key
,
host
:
response
.
host
,
OSSAccessKeyId
:
response
.
accessid
,
OSSAccessKeyId
:
response
.
accessid
,
policy
:
response
.
policy
,
policy
:
response
.
policy
,
signature
:
response
.
signature
,
signature
:
response
.
signature
,
...
@@ -101,7 +102,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
...
@@ -101,7 +102,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
<
template
>
<
template
>
<el-upload
<el-upload
action=
"https://webapp-pub.ezijing.com
"
:action=
"uploadData?.host
"
:data=
"uploadData"
:data=
"uploadData"
:show-file-list=
"showFileList"
:show-file-list=
"showFileList"
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
...
...
src/components/tinymce/Index.vue
浏览文件 @
2f6a0895
...
@@ -20,6 +20,7 @@ const ImageUploadHandler = (blobInfo: any) =>
...
@@ -20,6 +20,7 @@ const ImageUploadHandler = (blobInfo: any) =>
const
{
accessid
,
policy
,
signature
,
host
}
=
response
const
{
accessid
,
policy
,
signature
,
host
}
=
response
const
params
=
{
const
params
=
{
key
,
key
,
host
,
OSSAccessKeyId
:
accessid
,
OSSAccessKeyId
:
accessid
,
policy
,
policy
,
signature
,
signature
,
...
...
src/modules/course/create/components/stepOneComponents/UploadImg.vue
浏览文件 @
2f6a0895
...
@@ -32,6 +32,7 @@ const handleBeforeUpload = async (file: any) => {
...
@@ -32,6 +32,7 @@ const handleBeforeUpload = async (file: any) => {
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
uploadData
.
value
=
{
uploadData
.
value
=
{
key
,
key
,
host
:
response
.
host
,
OSSAccessKeyId
:
response
.
accessid
,
OSSAccessKeyId
:
response
.
accessid
,
policy
:
response
.
policy
,
policy
:
response
.
policy
,
signature
:
response
.
signature
,
signature
:
response
.
signature
,
...
@@ -79,7 +80,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
...
@@ -79,7 +80,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
<
template
>
<
template
>
<el-upload
<el-upload
action=
"https://webapp-pub.ezijing.com
"
:action=
"uploadData?.host
"
:data=
"uploadData"
:data=
"uploadData"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
...
...
src/modules/resource/video/components/UploadImg.vue
浏览文件 @
2f6a0895
...
@@ -32,6 +32,7 @@ const handleBeforeUpload = async (file: any) => {
...
@@ -32,6 +32,7 @@ const handleBeforeUpload = async (file: any) => {
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
const
response
:
Record
<
string
,
any
>
=
await
getSignature
()
uploadData
.
value
=
{
uploadData
.
value
=
{
key
,
key
,
host
:
response
.
host
,
OSSAccessKeyId
:
response
.
accessid
,
OSSAccessKeyId
:
response
.
accessid
,
policy
:
response
.
policy
,
policy
:
response
.
policy
,
signature
:
response
.
signature
,
signature
:
response
.
signature
,
...
@@ -79,7 +80,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
...
@@ -79,7 +80,7 @@ const handlePreview: UploadProps['onPreview'] = uploadFile => {
<
template
>
<
template
>
<el-upload
<el-upload
action=
"https://webapp-pub.ezijing.com
"
:action=
"uploadData?.host
"
:data=
"uploadData"
:data=
"uploadData"
:show-file-list=
"false"
:show-file-list=
"false"
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论