Browse Source

host参数

pull/102/head
pengda 4 weeks ago
parent
commit
b5b61cd7c6
  1. 2
      src/components/Header.vue

2
src/components/Header.vue

@ -27,7 +27,7 @@ export default {
this.$http('POST', '/agentnew/login_out', {}).then(response => { this.$http('POST', '/agentnew/login_out', {}).then(response => {
if(response.status){ if(response.status){
localStorage.removeItem('token') localStorage.removeItem('token')
window.location.href = this.$host; window.location.href = process.env.VUE_APP_BASE_API;
}else{ }else{
this.$message.error(response.data.info) this.$message.error(response.data.info)
} }

Loading…
Cancel
Save