Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-purchase
Project
Project
Details
Activity
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
张冬
web-purchase
Commits
b76f3bc1
Commit
b76f3bc1
authored
Nov 07, 2020
by
张冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSSwenti
parent
49c3a719
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
ali-oss.js
src/api/ali-oss.js
+9
-4
ceshi.vue
src/pages/ceshi.vue
+1
-11
No files found.
src/api/ali-oss.js
View file @
b76f3bc1
...
@@ -8,11 +8,16 @@ let OSS = require('ali-oss');
...
@@ -8,11 +8,16 @@ let OSS = require('ali-oss');
* [region] {String}:bucket所在的区域, 默认oss-cn-hangzhou。
* [region] {String}:bucket所在的区域, 默认oss-cn-hangzhou。
*/
*/
let
client
=
new
OSS
({
let
client
=
new
OSS
({
region
:
'oss-cn-beijing'
,
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,部署在服务端使用RAM子账号或STS,部署在客户端使用STS。
accessKeyId
:
'LTAI4GG1zbSAQrjAvWL8bJKX'
,
accessKeySecret
:
'06yXwRMA5ppeTb0hI29lG3jQqwr4A8'
,
bucket
:
'hsz1997'
// region: 'oss-cn-beijing.aliyuncs.com',
// bucket: 'jieancai',
// accesskeyId: 'LTAI4FyVepQBtS7P6waqWbjC',
// accesskeySecret: 'Fu97bC8ygDnsef8dhXlU4ZEaB2gNDM',
bucket
:
'jieancai'
,
accesskeyId
:
'LTAI4FyVepQBtS7P6waqWbjC'
,
accesskeySecret
:
'Fu97bC8ygDnsef8dhXlU4ZEaB2gNDM'
,
region
:
'oss-cn-beijing.aliyuncs.com'
});
});
/**
/**
...
...
src/pages/ceshi.vue
View file @
b76f3bc1
<
template
>
<
template
>
<div>
<div>
<div
class=
"content"
>
<div
class=
"content"
>
<JwChat
:taleList=
"list"
scrollType=
"norell"
:config=
"config"
@
enter=
"bindEnter"
v-model=
"inputMsg"
:toolConfig=
"tool"
>
</JwChat>
<div
@
click=
"up"
>
上传
</div>
<div
@
click=
"up"
>
上传
</div>
<singleUpload
:limit=
"1"
tip=
"支持扩展名:.rar .zip .doc .docx .pdf .jpg..."
@
input=
"getfile"
></singleUpload>
</div>
</div>
</div>
</div>
...
@@ -14,15 +12,7 @@
...
@@ -14,15 +12,7 @@
import
{
import
{
autodeploy
autodeploy
}
from
'@api/common/list'
}
from
'@api/common/list'
import
imgupload
from
'@components/Upload/imgUpload.vue'
import
upload
from
'@components/Upload/newUpload.vue'
import
singleUpload
from
'@components/Upload/Upload.vue'
export
default
{
export
default
{
components
:
{
upload
,
imgupload
,
singleUpload
},
data
()
{
data
()
{
return
{
return
{
inputMsg
:
''
,
inputMsg
:
''
,
...
...
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