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

修改bug

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