diff --git a/package.json b/package.json index 894f8d3..989638d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "media_player_client", - "version": "1.4.4", + "version": "1.4.5", "description": "A Quasar Framework app", "productName": "MediaPlayerClient", "author": "fangxiang ", diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index ffa58e1..0f127d1 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -1044,6 +1044,16 @@ export default class ClientConnection { } } + public async getSystemNetworkInfo() { + try { + return await this.doRpc( + new Protocol.GetSystemNetworkInfoRequestEntity() + ); + } catch (e) { + console.error(e); + } + } + public destory() { if (this.ws) { this.ws.onclose = null; diff --git a/src/components/SystemSettingDialog.vue b/src/components/SystemSettingDialog.vue index 3601f18..caf0691 100644 --- a/src/components/SystemSettingDialog.vue +++ b/src/components/SystemSettingDialog.vue @@ -97,10 +97,11 @@ :options="[$t('enable'), $t('disable')]" :loading="loading" :disable="loading" + @update:model-value="autoIpChanged" /> - + {{ $t("ip address") + ":" }} @@ -108,7 +109,7 @@ + {{ $t("gateway") + ":" }} + {{ $t("netmask") + ":" }}