|
@@ -67,14 +67,13 @@ export const useSystemStore = defineStore({
|
|
|
|
|
|
const info = res.data
|
|
|
const systemStore = useSystemStore()
|
|
|
- console.log(info)
|
|
|
const getInfoData = info => {
|
|
|
const infoData = {
|
|
|
endpoint: 'https://cardiot.oss-cn-beijing.aliyuncs.com',
|
|
|
region: 'oss-cn-beijing',
|
|
|
- accessKeyId: info.accessKeyId,
|
|
|
- accessKeySecret: info.accessKeySecret,
|
|
|
- stsToken: info.securityToken,
|
|
|
+ accessKeyId: info.AccessKeyId,
|
|
|
+ accessKeySecret: info.AccessKeySecret,
|
|
|
+ stsToken: info.SecurityToken,
|
|
|
bucket: 'cardiot',
|
|
|
cname: true
|
|
|
}
|
|
@@ -83,14 +82,12 @@ export const useSystemStore = defineStore({
|
|
|
return infoData
|
|
|
}
|
|
|
getInfoData(info)
|
|
|
- console.log(this.stsClientInfo)
|
|
|
+
|
|
|
const client = new windowVar.OSS({
|
|
|
...this.stsClientInfo,
|
|
|
refreshSTSToken: async () => {
|
|
|
const res = await getSTSInfo({})
|
|
|
-
|
|
|
getInfoData(res.data)
|
|
|
-
|
|
|
return {
|
|
|
accessKeyId: info.AccessKeyId,
|
|
|
accessKeySecret: info.AccessKeySecret,
|