[update]
This commit is contained in:
@@ -206,32 +206,13 @@ export default {
|
||||
},
|
||||
// 发布版本
|
||||
releaseVersion() {
|
||||
let _this = this
|
||||
axios({
|
||||
url: `/jero-boot/params/paramsInfo/publish?paramsTemplateId=${this.$route.query.id}`,
|
||||
method: 'get',
|
||||
transformRequest: [function (data) {
|
||||
let ret = ''
|
||||
for (let it in data) {
|
||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
}
|
||||
return ret
|
||||
}],
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Access-Token':_this.token
|
||||
getAction('params/paramsInfo/publish', { paramsTemplateId: this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.result)
|
||||
} else {
|
||||
this.$message.success(res.result)
|
||||
}
|
||||
})
|
||||
.then( (res) =>{
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.result)
|
||||
}else{
|
||||
_this.$message.warning(res.data.result)
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
//下载模板
|
||||
handleModule() {
|
||||
|
||||
Reference in New Issue
Block a user