Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1df57ec3
authored
May 10, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传文件优化
1 parent
9f17366e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
linkwe-pc/src/components/UploadToCos.vue
linkwe-pc/src/components/UploadToCos.vue
View file @
1df57ec
...
@@ -131,7 +131,6 @@
...
@@ -131,7 +131,6 @@
created
()
{
created
()
{
getCosConfig
().
then
((
res
)
=>
{
getCosConfig
().
then
((
res
)
=>
{
this
.
cosConfig
=
res
this
.
cosConfig
=
res
console
.
log
(
this
.
cosConfig
)
if
(
this
.
cosConfig
.
fileObject
==
'tencentOss'
)
{
if
(
this
.
cosConfig
.
fileObject
==
'tencentOss'
)
{
this
.
cosInstance
=
new
Cos
({
this
.
cosInstance
=
new
Cos
({
SecretId
:
res
.
secretId
,
SecretId
:
res
.
secretId
,
...
@@ -139,7 +138,8 @@
...
@@ -139,7 +138,8 @@
})
})
}
else
if
(
this
.
cosConfig
.
fileObject
==
'local'
)
{
}
else
if
(
this
.
cosConfig
.
fileObject
==
'local'
)
{
}
else
{
}
else
{
let
region
=
this
.
cosConfig
.
region
.
split
(
'//'
)[
1
]
let
region
=
this
.
cosConfig
.
region
.
indexOf
(
'//'
)
!=
-
1
?
this
.
cosConfig
.
region
.
split
(
'//'
)[
1
]
:
this
.
cosConfig
.
region
this
.
ossObj
=
new
OSS
({
this
.
ossObj
=
new
OSS
({
// yourRegion填写Bucket所在地域。Region填写为oss-cn-hangzhou。
// yourRegion填写Bucket所在地域。Region填写为oss-cn-hangzhou。
region
:
region
.
split
(
'.'
)[
0
],
region
:
region
.
split
(
'.'
)[
0
],
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment