[update]
This commit is contained in:
@@ -206,32 +206,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 发布版本
|
// 发布版本
|
||||||
releaseVersion() {
|
releaseVersion() {
|
||||||
let _this = this
|
getAction('params/paramsInfo/publish', { paramsTemplateId: this.$route.query.id }).then((res) => {
|
||||||
axios({
|
if (res.success) {
|
||||||
url: `/jero-boot/params/paramsInfo/publish?paramsTemplateId=${this.$route.query.id}`,
|
this.$message.success(res.result)
|
||||||
method: 'get',
|
} else {
|
||||||
transformRequest: [function (data) {
|
this.$message.success(res.result)
|
||||||
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
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.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() {
|
handleModule() {
|
||||||
|
|||||||
Reference in New Issue
Block a user