oss相关去除

main
wangxiaoshuang 2025-12-11 13:26:58 +08:00
parent 619dd6c3cd
commit 155de24b1a
2 changed files with 11 additions and 11 deletions

View File

@ -52,15 +52,15 @@ export default {
},
methods: {
async uploadVideo(objectName, file) {
try {
this.isDisabled = true
const result = await this.OSSclient.put(objectName, file)
this.$emit('uploadOver', true, result, this.file.name)
} catch (e) {
console.log(e)
this.isDisabled = false
this.$emit('uploadOver', false)
}
// try {
// this.isDisabled = true
// const result = await this.OSSclient.put(objectName, file)
// this.$emit('uploadOver', true, result, this.file.name)
// } catch (e) {
// console.log(e)
// this.isDisabled = false
// this.$emit('uploadOver', false)
// }
},
upload() {
if (document.querySelector('#video').readyState === 0 && document.querySelector('#video').buffered.length === 0) {

View File

@ -23,7 +23,7 @@ Vue.use(VueClipboard)
// import htmlToPdf from './utils/htmlToPdf'
// Vue.use(htmlToPdf)
import permission from './utils/permission'
import { OSSclient } from './utils/oss'
// import { OSSclient } from './utils/oss'
Vue.use(permission)
import Viewer from 'v-viewer'
@ -101,7 +101,7 @@ Vue.prototype.resetForm = resetForm
Vue.prototype.selectDictLabel = selectDictLabel
// Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.prototype.OSSclient = OSSclient
// Vue.prototype.OSSclient = OSSclient
Vue.prototype.$validatePassword = (rule, value, callback) => {
var lang = zzSessionStorage.getItem('lang')?zzSessionStorage.getItem('lang'):'zh'
/* eslint-disable */