feat:修改endpoint 搜索asset列表的接口

This commit is contained in:
zhangyu
2021-04-15 11:47:44 +08:00
parent 1c130e1cb2
commit 783f22b880
25 changed files with 2052 additions and 2310 deletions

View File

@@ -108,14 +108,14 @@ export default {
},
methods: {
refreshToken: function () {
if(!this.editPromServer.token||this.editPromServer.token == ''){
this.$message.error("The token is empty")
return;
if (!this.editPromServer.token || this.editPromServer.token == '') {
this.$message.error('The token is empty')
return
}
this.$post('agent/token/refresh' , this.editPromServer).then(response=>{
if(response.code == 200){
this.editPromServer.token = response.data.token;
}else{
this.$post('agent/token/refresh', this.editPromServer).then(response => {
if (response.code == 200) {
this.editPromServer.token = response.data.token
} else {
this.$message.error(response.msg)
}
})