|
|
|
@ -83,6 +83,7 @@ export default class ServerPage extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onSubmit(): void {
|
|
|
|
|
localStorage.removeItem('host');
|
|
|
|
|
this.$form.validate(async (valid: boolean) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
const { host, port } = this.form;
|
|
|
|
@ -98,6 +99,7 @@ export default class ServerPage extends BasePage {
|
|
|
|
|
throw e;
|
|
|
|
|
}
|
|
|
|
|
server.setServerAddress({ address });
|
|
|
|
|
localStorage.setItem('host', host);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
//icon: 'success',
|
|
|
|
|
title: this.$t('message.SetServerSuccessfully') as string,
|
|
|
|
|