mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-05 14:48:49 +00:00
hotfix / missing frontend xui.latestVersion
This commit is contained in:
parent
df1e83fa6a
commit
8f6490ac2d
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,7 @@
|
||||||
<a-card hoverable>
|
<a-card hoverable>
|
||||||
<b>3X-UI:</b>
|
<b>3X-UI:</b>
|
||||||
<a rel="noopener" href="https://github.com/MHSanaei/3x-ui/releases" target="_blank"><a-tag color="green">v{{ .cur_ver }}</a-tag></a>
|
<a rel="noopener" href="https://github.com/MHSanaei/3x-ui/releases" target="_blank"><a-tag color="green">v{{ .cur_ver }}</a-tag></a>
|
||||||
|
<a v-if="'v{{ .cur_ver }}' !== status.xui.latestVersion" rel="noopener" :href="`https://github.com/MHSanaei/3x-ui/releases/tag/${status.xui.latestVersion}`" target="_blank"><a-tag color="purple">Available [[ status.xui.latestVersion ]]</a-tag></a>
|
||||||
<a rel="noopener" href="https://t.me/XrayUI" target="_blank"><a-tag color="green">@XrayUI</a-tag></a>
|
<a rel="noopener" href="https://t.me/XrayUI" target="_blank"><a-tag color="green">@XrayUI</a-tag></a>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -472,6 +473,7 @@
|
||||||
this.appUptime = 0;
|
this.appUptime = 0;
|
||||||
this.appStats = {threads: 0, mem: 0, uptime: 0};
|
this.appStats = {threads: 0, mem: 0, uptime: 0};
|
||||||
this.xray = { state: State.Stop, errorMsg: "", version: "", color: "" };
|
this.xray = { state: State.Stop, errorMsg: "", version: "", color: "" };
|
||||||
|
this.xui = { latestVersion: "" };
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
return;
|
return;
|
||||||
|
@ -493,6 +495,7 @@
|
||||||
this.appUptime = data.appUptime;
|
this.appUptime = data.appUptime;
|
||||||
this.appStats = data.appStats;
|
this.appStats = data.appStats;
|
||||||
this.xray = data.xray;
|
this.xray = data.xray;
|
||||||
|
this.xui = data.xui;
|
||||||
switch (this.xray.state) {
|
switch (this.xray.state) {
|
||||||
case State.Running:
|
case State.Running:
|
||||||
this.xray.color = "green";
|
this.xray.color = "green";
|
||||||
|
|
Loading…
Reference in a new issue