Commit 8f0362ba authored by 张伯涛's avatar 张伯涛

接口调整,菜单添加

parent 0179f135
......@@ -71,12 +71,16 @@ export function defaultUrl(data) {
}
// 课程管理修改封面
export function picImport(data) {
data = Qs.stringify(data)
return request({
url: '/blesson/picImport',
method: 'post',
data,
headers: {}
headers: {
'Content-Type': 'multipart/form-data'
},
transformRequest: [(data) => {
return data
}],
data
})
}
// 课程管理-目录添加章
......
<template>
<div class="competitionSupport_module">
大赛
</div>
</template>
<script>
export default {
name: "index",
data() {
return{
}
},
created() {
},
mounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.competitionSupport_module{
}
</style>
......@@ -680,11 +680,10 @@ export default {
});
}else {
_this.fullscreenLoading = true;
const params = {
importFile: cover,
code: _this.teacode,
}
picImport(params).then(res => {
var formData = new FormData() // 当前为空
formData.append('importFile',cover)
formData.append('code',_this.teacode)
picImport(formData).then(res => {
_this.fullscreenLoading = false;
_this.dialogVisible = false;
let type = res.code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment