Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
cb1b5707
Commit
cb1b5707
authored
Aug 25, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 七牛云上传地区改为华南
parent
5114719f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
qiniup.js
src/components/upload/qiniup.js
+2
-2
index.js
src/plugins/uploader/index.js
+1
-1
No files found.
src/components/upload/qiniup.js
View file @
cb1b5707
...
...
@@ -5,7 +5,7 @@ export default {
components
:
{},
data
()
{
return
{
domain
:
'http
://upload
.qiniup.com'
,
// 七牛上传域名地址
domain
:
'http
s://upload-z2
.qiniup.com'
,
// 七牛上传域名地址
uptokenURL
:
globalUrl
.
systemUrl
.
apiUrl
+
'/wxh-cloud-rest/rest/qiniu/token'
,
// 上传token地址
files
:[],
// 上传文件
fileMaps
:[],
// 上传文件返回对象
...
...
@@ -22,7 +22,7 @@ export default {
initQiniu
:
function
()
{
var
defaulfs
=
{
// bucket所在区域,这里是华北区。ECN, SCN, NCN, NA, ASG,分别对应七牛云的:华东,华南,华北,北美,新加坡 5 个区域
region
:
'
E
CN'
,
region
:
'
S
CN'
,
bucket
:
'fa-cms'
,
qiniuBucketURLPrefix
:
'uploads'
,
// 获取uptoken方法三选一即可,执行优先级为:uptoken > uptokenURL > uptokenFunc。三选一,剩下两个置空。推荐使用uptokenURL,详情请见 README.md
...
...
src/plugins/uploader/index.js
View file @
cb1b5707
...
...
@@ -41,7 +41,7 @@ uploader.getQnToken = function(params) {
visitPrefix
:
data
.
host
,
token
:
data
.
data
||
''
,
folderPath
:
data
.
folderPath
||
''
,
region
:
"
E
CN"
region
:
"
S
CN"
})
}).
catch
(()
=>
{
let
err
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment