|
@@ -52,6 +52,7 @@
|
|
|
multiple
|
|
multiple
|
|
|
accept='.doc,.docx,.pdf,.xls,.xlsx,.png,.jpg,.jpeg,.ppt,pptx'
|
|
accept='.doc,.docx,.pdf,.xls,.xlsx,.png,.jpg,.jpeg,.ppt,pptx'
|
|
|
show-file-list
|
|
show-file-list
|
|
|
|
|
+ :headers="{'Authorization':`Basic ${clientId}`}"
|
|
|
:on-success='uploadSuccess'
|
|
:on-success='uploadSuccess'
|
|
|
>
|
|
>
|
|
|
<el-icon class="el-icon--upload">
|
|
<el-icon class="el-icon--upload">
|
|
@@ -92,12 +93,15 @@ import baseButton from '@/components/base-button.vue'
|
|
|
import basicCurd from '@/components/basic-curd/index.vue'
|
|
import basicCurd from '@/components/basic-curd/index.vue'
|
|
|
import api from '@/api'
|
|
import api from '@/api'
|
|
|
import authorize from '@/views/home/component/authorize.vue'
|
|
import authorize from '@/views/home/component/authorize.vue'
|
|
|
|
|
+import { Base64 } from 'js-base64'
|
|
|
|
|
+import website from '@/config/website.js'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'index',
|
|
name: 'index',
|
|
|
components: { BasicContainer, baseButton, basicCurd, authorize },
|
|
components: { BasicContainer, baseButton, basicCurd, authorize },
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ clientId: '',
|
|
|
authorShow: false,
|
|
authorShow: false,
|
|
|
showImage: false,
|
|
showImage: false,
|
|
|
imgList: [],
|
|
imgList: [],
|
|
@@ -145,6 +149,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
|
|
|
+ this.clientId = Base64.encode(`${website.clientId}:${website.clientSecret}`)
|
|
|
this.list()
|
|
this.list()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|