提交 2d42bed4 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 45bb6d14
......@@ -17,7 +17,6 @@ export default class MyUploadAdapter {
}
_sendRequest(resolve, reject, file) {
debugger
uploadFile({ file })
.then(response => {
if (response.success) {
......
......@@ -67,7 +67,7 @@ export default {
this.$refs.ruleForm.resetFields()
})
.finally(data => {
this.$message({ message: '密码修改失败', type: 'warning' })
// this.$message({ message: '密码修改失败', type: 'warning' })
this.submitLoading = false
})
}
......
......@@ -75,7 +75,7 @@ export default {
},
{
title: '产品信息',
content: this.product_detail,
content: this.data.product_detail,
url: 'https://zws-imgs-pub.ezijing.com/static/public/ef63f2f3ceff57c68a3b299b9303a0cd.png'
},
{
......
......@@ -51,6 +51,7 @@ export default {
},
// 选择案例
select(id) {
if (!this.isDetail) {
this.isSelected = id
api
.confirmCases({ case_id: this.isSelected })
......@@ -58,6 +59,7 @@ export default {
})
.finally(() => {
})
}
},
// 获取案例列表
getCaseList() {
......
......@@ -132,6 +132,7 @@ export default {
type: 'warning'
})
} else {
// this.formData.case_id = 1
api
.submitTrigger(this.formData)
.then(response => {
......
......@@ -37,13 +37,11 @@ httpRequest.interceptors.response.use(
function(response) {
const { data } = response
if (data.code) {
// Message.error(data.message)
return Promise.reject(data)
return data.message ? Message.error(data.message) : Message.error(data.msg)
}
return data
},
function(error) {
console.log(error.response)
if (error.response) {
const { status, message } = error.response.data
// 未登录
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论