Fixed mangling hostname when port entered manually
This commit is contained in:
parent
348eb1b73f
commit
6e0a079c2a
1 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleSubmit: function(event) {
|
handleSubmit: function(event) {
|
||||||
|
if (this.hostname.includes(':')) {
|
||||||
|
this.port = this.computedPort
|
||||||
|
this.hostname = this.hostname.split(':')[0];
|
||||||
|
}
|
||||||
// Commit the hostname and port to store
|
// Commit the hostname and port to store
|
||||||
this.$store.commit('changeHost', [
|
this.$store.commit('changeHost', [
|
||||||
this.hostname,
|
this.hostname,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue