oss相关去除
parent
619dd6c3cd
commit
155de24b1a
|
|
@ -52,15 +52,15 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async uploadVideo(objectName, file) {
|
async uploadVideo(objectName, file) {
|
||||||
try {
|
// try {
|
||||||
this.isDisabled = true
|
// this.isDisabled = true
|
||||||
const result = await this.OSSclient.put(objectName, file)
|
// const result = await this.OSSclient.put(objectName, file)
|
||||||
this.$emit('uploadOver', true, result, this.file.name)
|
// this.$emit('uploadOver', true, result, this.file.name)
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
console.log(e)
|
// console.log(e)
|
||||||
this.isDisabled = false
|
// this.isDisabled = false
|
||||||
this.$emit('uploadOver', false)
|
// this.$emit('uploadOver', false)
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
upload() {
|
upload() {
|
||||||
if (document.querySelector('#video').readyState === 0 && document.querySelector('#video').buffered.length === 0) {
|
if (document.querySelector('#video').readyState === 0 && document.querySelector('#video').buffered.length === 0) {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Vue.use(VueClipboard)
|
||||||
// import htmlToPdf from './utils/htmlToPdf'
|
// import htmlToPdf from './utils/htmlToPdf'
|
||||||
// Vue.use(htmlToPdf)
|
// Vue.use(htmlToPdf)
|
||||||
import permission from './utils/permission'
|
import permission from './utils/permission'
|
||||||
import { OSSclient } from './utils/oss'
|
// import { OSSclient } from './utils/oss'
|
||||||
Vue.use(permission)
|
Vue.use(permission)
|
||||||
|
|
||||||
import Viewer from 'v-viewer'
|
import Viewer from 'v-viewer'
|
||||||
|
|
@ -101,7 +101,7 @@ Vue.prototype.resetForm = resetForm
|
||||||
Vue.prototype.selectDictLabel = selectDictLabel
|
Vue.prototype.selectDictLabel = selectDictLabel
|
||||||
// Vue.prototype.download = download
|
// Vue.prototype.download = download
|
||||||
Vue.prototype.handleTree = handleTree
|
Vue.prototype.handleTree = handleTree
|
||||||
Vue.prototype.OSSclient = OSSclient
|
// Vue.prototype.OSSclient = OSSclient
|
||||||
Vue.prototype.$validatePassword = (rule, value, callback) => {
|
Vue.prototype.$validatePassword = (rule, value, callback) => {
|
||||||
var lang = zzSessionStorage.getItem('lang')?zzSessionStorage.getItem('lang'):'zh'
|
var lang = zzSessionStorage.getItem('lang')?zzSessionStorage.getItem('lang'):'zh'
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue