🎨fix a bug
This commit is contained in:
parent
6715ce35c9
commit
21b78d4f9e
@ -132,6 +132,7 @@ const getRule = () => {
|
|||||||
rule.value = res.data.rule === "hand";
|
rule.value = res.data.rule === "hand";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
storageLocal().setItem("restart-rule", rule.value);
|
||||||
return rule;
|
return rule;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import { useServerStoreHook } from "@/store/modules/server";
|
import { useServerStoreHook } from "@/store/modules/server";
|
||||||
import { getSystemLog } from "@/api/dashboard";
|
import { getSystemLog } from "@/api/dashboard";
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import {getClientConnects, offlineClient} from "@/api/clients";
|
import { getClientConnects, offlineClient } from "@/api/clients";
|
||||||
import {Refresh} from "@element-plus/icons-vue";
|
import { Refresh } from "@element-plus/icons-vue";
|
||||||
import {message} from "@/utils/message";
|
import { message } from "@/utils/message";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "Dashboard"
|
name: "Dashboard"
|
||||||
@ -87,7 +87,13 @@ getClientsStatus();
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span>操作日志</span>
|
<span>操作日志</span>
|
||||||
<el-button style="float: right" type="primary" :icon="Refresh" @click="refreshClick('systemLog')">刷新</el-button>
|
<el-button
|
||||||
|
style="float: right"
|
||||||
|
type="primary"
|
||||||
|
:icon="Refresh"
|
||||||
|
@click="refreshClick('systemLog')"
|
||||||
|
>刷新</el-button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<el-table
|
<el-table
|
||||||
@ -194,7 +200,13 @@ getClientsStatus();
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<span>客户端链接状态</span>
|
<span>客户端链接状态</span>
|
||||||
<el-button style="float: right" type="primary" :icon="Refresh" @click="refreshClick('clientStatus')">刷新</el-button>
|
<el-button
|
||||||
|
style="float: right"
|
||||||
|
type="primary"
|
||||||
|
:icon="Refresh"
|
||||||
|
@click="refreshClick('clientStatus')"
|
||||||
|
>刷新</el-button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<el-table
|
<el-table
|
||||||
@ -256,11 +268,7 @@ getClientsStatus();
|
|||||||
min-width="80"
|
min-width="80"
|
||||||
align="center"
|
align="center"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="操作" min-width="80" align="center">
|
||||||
label="操作"
|
|
||||||
min-width="80"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.isOnline"
|
v-if="scope.row.isOnline"
|
||||||
|
@ -151,6 +151,7 @@ const openAddClientDialog = () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const serverInfo = storageLocal().getItem("server-info");
|
const serverInfo = storageLocal().getItem("server-info");
|
||||||
|
const restartRule = storageLocal().getItem("restart-rule") ? 1 : 0;
|
||||||
addDialog({
|
addDialog({
|
||||||
width: "40%",
|
width: "40%",
|
||||||
title: "新增",
|
title: "新增",
|
||||||
@ -167,7 +168,7 @@ const openAddClientDialog = () => {
|
|||||||
extraAllowedIPS: "",
|
extraAllowedIPS: "",
|
||||||
endpoint: "",
|
endpoint: "",
|
||||||
useServerDNS: 0,
|
useServerDNS: 0,
|
||||||
enableAfterCreation: 0,
|
enableAfterCreation: restartRule,
|
||||||
keys: {
|
keys: {
|
||||||
privateKey: "",
|
privateKey: "",
|
||||||
publicKey: "",
|
publicKey: "",
|
||||||
|
Loading…
Reference in New Issue
Block a user