Merge pull request 'zhuhao_dev' (#2) from zhuhao_dev into main
Reviewed-on: #2
This commit is contained in:
commit
0f8d61fce7
|
@ -24,4 +24,4 @@ import AppMain from './components/AppMain.vue'
|
|||
.el-header {
|
||||
padding: 0
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -1,11 +1,41 @@
|
|||
<template>
|
||||
<div>
|
||||
备课Page
|
||||
<el-upload
|
||||
:action="uploadUrl"
|
||||
:before-upload="handleBeforeUpload"
|
||||
:on-success="handleUploadSuccess"
|
||||
:on-error="handleUploadError"
|
||||
name="file"
|
||||
:show-file-list="false"
|
||||
class="editor-img-uploader"
|
||||
>
|
||||
上传
|
||||
</el-upload>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Prepare',
|
||||
data() {
|
||||
return {
|
||||
uploadUrl: import.meta.env.VITE_APP_BASE_API + '/smarttalk/file/upload'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
handleBeforeUpload(file) {
|
||||
console.log(file)
|
||||
},
|
||||
handleUploadSuccess(res, file) {
|
||||
console.log(res, file)
|
||||
},
|
||||
handleUploadError(error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style scoped lang="scss"></style>
|
||||
|
|
Loading…
Reference in New Issue